Splitting a file before upload?

前端 未结 4 451
南方客
南方客 2020-12-18 05:13

On a webpage, is it possible to split large files into chunks before the file is uploaded to the server? For example, split a 10MB file into 1MB chunks, and upload one chunk

4条回答
  •  醉梦人生
    2020-12-18 05:22

    The only option I know of that would allow this would be a signed Java applet.

    Unsigned applets and Flash movies have no filesystem access, so they wouldn't be able to read the file data. Flash is able to upload files, but most of that is handled by the built-in Flash implementation and from what I remember the file contents would never be exposed to your code.

提交回复
热议问题