See: Description
Interface | Description |
---|---|
FileData |
This class contains all data and methods for a file to upload.
|
Class | Description |
---|---|
AudioFileData | Deprecated |
DefaultFileData |
This class contains all data and methods for a file to upload.
|
PictureFileData |
This class contains all data about files to upload as a picture.
|
This package allows you to change the file relative behaviour: this page describes how to override the default behaviour, to fullfill your needs (for instance add data compression, preload check, new data about files in the upload to the server..
UploadPolicy
, and override the
wjhk.jupload2.policies.UploadPolicy#createFileData(java.io.File, java.io.File)
method.
FileData.appendFileProperties(ByteArrayEncoder, int) |
Add properties like the filename, or the directory to the upload (useless in FTP mode) |
wjhk.jupload2.filedata.FileData#beforeUpload() |
Allows the FileData to do any necessary work before the upload of the file begin. For instance, in PictureFileData, the picture can here be resized, according to the upload policies values. |
FileData.getUploadLength() |
Returns the actual number of bytes that will be uploaded. Will be different from the file length, if the file must transformed before upload. For instance: picture resizing, or before upload compression. |
FileData.afterUpload() |
Called after the end of the upload. Allows to clear any resource, like temporary files. |
FileData.getInputStream() |
Returns an InputStream, that'll contain all bytes to upload. |
FileData.getFileExtension()
FileData.getFileLength()
FileData.getLastModified()
FileData.getDirectory()
FileData.getMimeType()
FileData.canRead()
wjhk.jupload2.filedata.FileData#getFile()
FileData.getRelativeDir()
: Returns the directory, relative to the current selection. Especially useful when
dropping entire directories on the applet.
Copyright © 2015. All rights reserved.