Applet: | UploadClient |
Description: | When ZipFiles is set to a value other than 0, JFile will zip the files to upload, and transfer a zip file to the server. Transferring a single zip file is faster than transferring several files. However, since zipping takes time, it may not improve performance if in the case of small transfers. Files may be either compressed in the zip or simply stored, depending on the value of the ZipMethod parameter. File NamesIf ZipMethod is set to "deflated," and a file is selected directly (rather than through a directory upload), it will be stored in the zip file with its original name, and without path information. If several files with the same name are added to the zip, "_(number)" will be appended to all but the first file name (for example, file.txt, file_(1).txt, file_(2).txt). If ZipMethod is set to "stored," and a file is selected directly (rather than through a directory upload), it will be stored in the zip file with its original name and path information. In the case of directory uploads (recursive or not), files will be added to the zip with their original names and relative paths. If several folders with the same name are added to the zip, "_(number)" will be appended to all but the first folder name (for example, a zip could contain folder\file.ext, folder_(1)\file.ext, and folder_(2)\file.ext). |
Example: | To zip and compress files before uploading, set ZipFiles to a value other than 0, and ZipMethod to "deflated." <param name="ZipFiles" value="1"> |