CodeIgniter Forums

Full Version: Upload large files
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Is there any support for uploading large files in slices to prevent any hassle with PHP file or upload limits? Typical examples are movies...
@HardyW & Nona,

Maybe this link will help...https://stackoverflow.com/questions/16102809/how-to-upload-large-files-above-500mb-in-php

Also, you should have access to change the PHP settings at your host. If not maybe you might want to consider moving to a new hosting company.
as @php_rocs said, if you want to upload big files you have to change the file size limit and your time to upload files in your server( in php.ini)
(01-19-2019, 03:35 PM)HardyW Wrote: [ -> ]Is there any support for uploading large files in slices to prevent any hassle with PHP file or upload limits? Typical examples are movies...

I am using tus upload from https://tus.io/ . They do not have official php implementation but this library from https://github.com/ankitpokhrel/tus-php has the server side implementation. On the front end, I use Uppy from https://uppy.io

I am using the above combination to upload videos upto 1GB and it does a good job. You might need to do trial and error on the php implementation side as the php library has some hard coded urls and bugs with missing documentation.
Perhaps investigate Bittorrent:

https://en.wikipedia.org/wiki/BitTorrent
If you're using AWS, there is direct multipart uploads to s3
I've just stumbled across this free file sharing online utility with a 10 Gb limit:

https://transfer.sh/

If you try it, please let us know if it was successful.
Lots of good resources already. I’ll plug my CodeIgniter 4 Files module - it uses DropZone as the front-end which handles slicing into sizes that you configure. There’s a fair amount about it that is preset at the moment, but you can reuse the views wherever you like (or merge and edit) if you need this embedded in an existing page.

https://github.com/tattersoftware/codeigniter4-files
https://packagist.org/packages/tatter/files
composer require tatter/files