Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Can JFileUpload compress file automatically before upload ?

0
Posted

Can JFileUpload compress file automatically before upload ?

0

Yes, JFileUpload could zip file before upload if you enable “ziponfly” parameter. Here is how JFileUpload works: 1 – Create a temporary ZIP file (such as originalfilename.zip). 2 – Upload the compressed file. 3 – Delete the temporary ZIP file. Notice that file stored on server-side will be originalfilename.zip Using this parameter could lower bandwidth usage but it will affect client-side performance because of compression process. Don’t enable “ziponfly” parameter if you plan to transfer compressed files such as GIF, JPEG, MP3, … JFileUpload allows skipping such files with “zipignorelist” parameter. JFileUpload could also zip all files in one overall archive before upload. See the compression tutorial to learn how to setup this feature.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123