问题描述
我有一个文件共享网页。免费使用。我想上传0mb至1GB之间的文件。两天以来我一直在Google进行搜索,但是找不到任何我需要的东西...
I have got a little file sharing webpage. It's free to use it. I would like to upload files between 0mb and 1GB. I'm searching in Google since two days, but I can't find anything what I needed...
我的网页:但是,我现在只能上传20-30mb。我想一次只上传1个文件。但是它可能大于500-600mb ...有人可以帮我吗?
My webpage: http://boxy.tigyisolutions.hu However I can upload only 20-30mb now. I would like upload only 1 file at once. But it may be bigger than 500-600mb ... Can anyone help me?
I尝试了jquery fileupload,但是对我来说什么都没有上传。
I tried jquery fileupload, but it's uploading nothing for me.
推荐答案
方法将使您可以将文件客户端拆分为多个块。然后,您必须分别发送每个块。这仅在支持的浏览器上有效。
The Blob.slice method will allow you to split up a file client-side into chunks. You must then send each chunk individually. This will only work on browsers that support the File API.
如果您不想自己编写此代码,请是一个javascript上传器库,可以为您分块文件并将其发送到您的服务器。
If you don't want to write this code yourself, Fine Uploader is a javascript uploader library that has the ability to chunk files for you and send them to your server.
这篇关于如何按块上传大文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!