- org.joget.commons.util.FileStore
- Under wflow-commons module
- Utility class to act as a temporary holder to manage the files posted in a HTTP request
...
Code Block |
---|
|
import org.joget.commons.util.FileLimitException;
import org.joget.commons.util.FileStore;
import org.joget.commons.util.LogUtil;
import org.springframework.web.multipart.MultipartFile;
String uploadFieldName = "csvImport";
//Gets file
try {
MultipartFile csvFile = FileStore.getFile(uploadFieldName);
} catch (FileLimitException e) {
LogUtil.error("", e, "File received from " + uploadFieldName + " is exceeded file size limit of " + FileStore.getFileSizeLimit() + "MB.");
} |
Methods
clear
public static void clear()
...