vue-upload icon indicating copy to clipboard operation
vue-upload copied to clipboard

Chunked upload

Open janiskelemen opened this issue 7 years ago • 3 comments

Hi,

first of all... thank you for your work on this great upload component! We have implemented it and are very happy so far. However one feature I would love would be support for chunked uploads. Is that something you are planning to add or should I extend it myself?

Best regards!

janiskelemen avatar Aug 02 '18 10:08 janiskelemen

Hey, thx, glad it's working out for you.

Haven't even thought about that, but it would be something nice to have for sure. Seems like the front end part is quite straight forward for the most part:

https://gist.github.com/shiawuen/1534477

Although I guess this example is quite trivial since it doesn't deal with failed / resending chunks. But I guess that could be tracked in an array.

More I'm wondering about the backend part of this. But if you have some experience with it would be great if you can contribute it.

websanova avatar Aug 02 '18 13:08 websanova

The gist looks quite easy. The backend is a bit more complex but fortunately there are many good php scripts out there to handle chunks. The one from plupload is a good example:

https://github.com/moxiecode/plupload/blob/master/examples/upload.php

I could write an php example script specially for vue-upload if that helps.

janiskelemen avatar Aug 02 '18 13:08 janiskelemen

Sure, everything helps.

I have a little demo API as well for this kind of stuff (Laravel). If you wanna do it in there.

https://github.com/websanova/laravel-api-demo

websanova avatar Aug 03 '18 08:08 websanova