Versions Compared

Key

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

Table of Contents

English

Description

Thai

ลักษณะ

  • 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
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()

...