Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagejava
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

Thai

กระบวนการ

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 เสร็จสิ้นการประมวลผล

...