Class WikiUploadService
java.lang.Object
fr.paris.lutece.plugins.wiki.service.file.WikiUploadService
Upload settings of the wiki.
-
Method Summary
Modifier and TypeMethodDescriptionstatic longReturns the maximum size of an uploaded file.static booleanisTooLarge(long lSize) Tells whether a file exceeds the maximum upload size.
-
Method Details
-
getMaxSize
public static long getMaxSize()Returns the maximum size of an uploaded file.- Returns:
- the maximum size, in bytes
-
isTooLarge
public static boolean isTooLarge(long lSize) Tells whether a file exceeds the maximum upload size.- Parameters:
lSize- the file size, in bytes- Returns:
- true when the file is too large
-