Konsole's avatar

[Package/Tutorial] Integrating tus-php for Resumable File upload in Laravel

Does anyone ever struggled with large file upload in PHP? And wondered if you could continue uploading where you left off without re-uploading whole data again in case of any interruptions?

Checkout how you can use tus protocol in PHP/Laravel to elegantly handle large file uploads. Resumable means you can carry on where you left off without re-uploading whole data again in case of any interruptions. An interruption may happen willingly if the user wants to pause, or by accident in case of a network issue or server outage.

Project Link: https://github.com/ankitpokhrel/tus-php Laravel/Lumen Integration: https://github.com/ankitpokhrel/tus-php/wiki/Laravel-&-Lumen-Integration

Feedbacks appreciated!

0 likes
1 reply
tiagomatosweb's avatar

Hey, I know it is old but I ended up implementing tus-php which I found pretty simple.

However, I want to send files to CloudFlare from my app via my backend.

So, I wonder if there is a way to avoid uploading files to my own server and then upload again to CloudFlare. I believe we could use tus-php for proxying this job?

Something like my app -> my backend -> CloudFlare?

Cheers

Please or to participate in this conversation.