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..
{@link wjhk.jupload2.filedata.FileData#appendFileProperties(ByteArrayEncoder, int)} | Add properties like the filename, or the directory to the upload (useless in FTP mode) |
{@link 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. |
{@link wjhk.jupload2.filedata.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. |
{@link wjhk.jupload2.filedata.FileData#afterUpload()} | Called after the end of the upload. Allows to clear any resource, like temporary files. |
{@link wjhk.jupload2.filedata.FileData#getInputStream()} | Returns an InputStream, that'll contain all bytes to upload. |