...
| 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()
| English |
|---|
| Method used by the system to clear the ThreadLocal object after an HTTP request is finished processing |
| Thai |
|---|
วิธีการที่ใช้โดยระบบเพื่อล้างวัตถุ ThreadLocal หลังจากการร้องขอ HTTP เสร็จสิ้นการประมวลผล |
...