HTML Compress File Upload?

前端 未结 3 1025
长情又很酷
长情又很酷 2020-12-03 18:19

is there any way you can get a browser to compress a file before uploading it?

ie from an

Thanks, Jamie

3条回答
  •  执念已碎
    2020-12-03 18:42

    Without using Flash, Java, Silverlight, or similar plug-ins, the browser doesn't compress the files it uploads. It's the server that can send compressed data, if it has been set to do so.

    To give a complete answer, I should say there are implementations of GZip made in JavaScript; considering that it is made natively in JavaScript, it is not a practical solution, and should be considered only in particular cases.

提交回复
热议问题