Splitting a file before upload?

前端 未结 4 462
南方客
南方客 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:42

    Do you specifically need it two be in X chunks? Or are you trying to solve the problems cause by uploading large files? (e.g. can't restart an upload on the client side, server side crashes when the entire file is uploaded and held in memory all at once)

    Search for streaming upload components. It depends on what technologies you are working with as to which component you will prefer jsp, asp.net, etc.

    http://krystalware.com/Products/SlickUpload/ This one is a server side product Here are some more pointers to various uploaders http://weblogs.asp.net/jgalloway/archive/2008/01/08/large-file-uploads-in-asp-net.aspx

    some try to manage memory on the server,e.g. so the entire huge file isn´t in memory at one time, some try to manage the client side experience.

提交回复
热议问题