Interface UploadableStep

    • Method Detail

      • upload

        ErrorRest upload​(org.dspace.core.Context context,
                         SubmissionService submissionService,
                         org.dspace.app.util.SubmissionStepConfig stepConfig,
                         org.dspace.content.InProgressSubmission wsi,
                         org.springframework.web.multipart.MultipartFile file)
                  throws IOException
        The method to implement to support upload of a file in the submission section (aka panel / step)
        Parameters:
        context - the dspace context
        submissionService - the submission service
        stepConfig - the configuration of the submission section
        wsi - the inprogress submission
        file - the multipart file, please note that it is a complex object containing additional information other than just the binary such as the filename and the mimetype
        Returns:
        the encountered error if any
        Throws:
        IOException