Joget DX 8 Stable Released
The stable release for Joget DX 8 is now available, with a focus on UX and Governance.
import java.io.File; import org.joget.commons.util.FileManager String path = "2dcd27eb-c0a80050-32ea05d3-608d46dd/test.txt"; //Get the file from temporary folder File file = FileManager.getFileByPath(path);
public final static Integer THUMBNAIL_SIZE = 60;
public final static String THUMBNAIL_EXT = ".thumb.jpg";
File extension used for generated thumbnail.
public static void createThumbnail(java.lang.String path, java.lang.Integer thumbWidth, java.lang.Integer thumbHeight)
Generates a thumbnail of a image file in temporary files folder by relative path
public static void deleteFile(java.io.File file)
Deletes a file
public static void deleteFileByPath(java.lang.String path)
Deletes the temporary file from temporary files folder by relative path
public static java.lang.String getBaseDirectory()
Gets directory path to temporary files folder
public static java.io.File getFileByPath(java.lang.String path)
Gets the temporary file from temporary files folder by relative path
public static java.lang.String storeFile(org.springframework.web.multipart.MultipartFile file)
Stores files post to the HTTP request to temporary files folder