File compression before upload on the client-side

前端 未结 6 1080
栀梦
栀梦 2020-12-24 15:12

Basically I\'ll be working with large XML files (approx. 20 - 50 MB). These files needs to be uploaded on a server.

I know it isn\'t possible to touch the files with

6条回答
  •  半阙折子戏
    2020-12-24 15:56

    If for whatever reason you can't get a solution to work in JavaScript for all major browsers, I know of an AS3 compression library here: http://code.google.com/p/ascompress/.

    Also, a less cooler option, if your target users are somewhat tech savy why not have them upload a .zip file of the xml? Then on the server side you can unzip and process as needed.

    Either way on the server side you'll want to unzip/decompress, which should be easy to google for solutions if you don't already have one in mind.

提交回复
热议问题