Package io.jmix.core
Interface FileTransferService
- All Known Implementing Classes:
FileTransferServiceImpl
public interface FileTransferService
A service for uploading and downloading files to/from
FileStorage
s.-
Method Summary
Modifier and TypeMethodDescriptionvoid
downloadAndWriteResponse
(FileRef fileReference, String fileStorageName, Boolean attachment, javax.servlet.http.HttpServletResponse response) org.springframework.http.ResponseEntity<FileInfoResponse>
fileUpload
(String name, String fileStorageName, javax.servlet.http.HttpServletRequest request) org.springframework.http.ResponseEntity<FileInfoResponse>
multipartFileUpload
(org.springframework.web.multipart.MultipartFile file, String name, String fileStorageName, javax.servlet.http.HttpServletRequest request)
-
Method Details
-
downloadAndWriteResponse
void downloadAndWriteResponse(FileRef fileReference, String fileStorageName, Boolean attachment, javax.servlet.http.HttpServletResponse response) throws FileTransferException - Throws:
FileTransferException
-
multipartFileUpload
org.springframework.http.ResponseEntity<FileInfoResponse> multipartFileUpload(org.springframework.web.multipart.MultipartFile file, String name, String fileStorageName, javax.servlet.http.HttpServletRequest request) throws FileTransferException - Throws:
FileTransferException
-
fileUpload
org.springframework.http.ResponseEntity<FileInfoResponse> fileUpload(String name, String fileStorageName, javax.servlet.http.HttpServletRequest request) throws FileTransferException - Throws:
FileTransferException
-