PKPFileUploadWizardHandler::displayFileUploadForm PHP Method

displayFileUploadForm() public method

Render the file upload form in its initial state.
public displayFileUploadForm ( $args, $request ) : JSONMessage
$args array
$request Request
return JSONMessage JSON object
    function displayFileUploadForm($args, $request)
    {
        // Instantiate, configure and initialize the form.
        import('lib.pkp.controllers.wizard.fileUpload.form.SubmissionFilesUploadForm');
        $submission = $this->getSubmission();
        $fileForm = new SubmissionFilesUploadForm($request, $submission->getId(), $this->getStageId(), $this->getUploaderRoles(), $this->getUploaderGroupIds(), $this->getFileStage(), $this->getRevisionOnly(), $this->getReviewRound(), $this->getRevisedFileId(), $this->getAssocType(), $this->getAssocId());
        $fileForm->initData($args, $request);
        // Render the form.
        return new JSONMessage(true, $fileForm->fetch($request));
    }