CodeIgniter Forums
Upload large files - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: CodeIgniter 4 (https://forum.codeigniter.com/forumdisplay.php?fid=28)
+--- Forum: CodeIgniter 4 Support (https://forum.codeigniter.com/forumdisplay.php?fid=30)
+--- Thread: Upload large files (/showthread.php?tid=72660)



Upload large files - HardyW - 01-19-2019

Is there any support for uploading large files in slices to prevent any hassle with PHP file or upload limits? Typical examples are movies...


RE: Upload large files - php_rocs - 10-02-2019

@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.


RE: Upload large files - mboufos - 10-03-2019

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)


RE: Upload large files - gaurav_ch - 10-03-2019

(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.


RE: Upload large files - John_Betong - 10-03-2019

Perhaps investigate Bittorrent:

https://en.wikipedia.org/wiki/BitTorrent


RE: Upload large files - albertleao - 10-03-2019

If you're using AWS, there is direct multipart uploads to s3


RE: Upload large files - John_Betong - 10-03-2019

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.


RE: Upload large files - InsiteFX - 10-03-2019

2 Ways to Upload Large Files in PHP


RE: Upload large files - MGatner - 10-04-2019

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