• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
HTML 5 chunked file upload

#1
In HTML5 (File API) you can upload the file in small parts. The small parts are put together on the server.
It would be a nice thing if ci support this.
Reply

#2
(06-24-2016, 10:28 PM)Paradinight Wrote: In HTML5 (File API) you can upload the file in small parts. The small parts are put together on the server.
It would be a nice thing if ci support this.

I'll have to look into the specifics of that, since I'm not overly familiar with it, but I would think that Apache/NGINX would handle that and provide it to PHP in the standard $_FILES array. Can you point to any details about this?
Support Development  • Practical CodeIgniter 3  •
Myth:AuthVulcan - CLI Tools for CI4
Reply

#3
have you try this one?
https://github.com/blueimp/jQuery-File-Upload
they have support for framework like codeigniter..
God Bless CI Contributors Smile
Reply

#4
Hello kilishan,
Plupload (wordpress use plupload)
- https://github.com/moxiecode/plupload-ha...andler.php

Resumable.js
- https://github.com/23/resumable.js/blob/...n%20PHP.md

blueimp/jQuery-File-Upload
https://github.com/blueimp/jQuery-File-U...andler.php

The file api read the file in small parts and send it to the server per javascript.

the advantages are:
- upload big files
- if one part can not be uploaded, you do not need upload the entire file.
- upload_max_filesize and post_max_size a not affected

It is a stupid feature requests from me and the priority is very low.

edit: @marksman
it is ci 4 feature requests not a help request.
Reply

#5
@paradinight, I use blueimp in CI 3 before and it works great.. I just add it as a third_party and in the library.. I didn't try it to CI 4 but i know its still possible.. for me I dont want too many libraries in the framework to keep it lightweight.. flexibility in framework is more important than storing too many unneccessary builtin libraries.. thats why im not using laravel. We can use laravel's component in CI plus it is lightweight.. best for every developer
God Bless CI Contributors Smile
Reply

#6
(06-24-2016, 10:48 PM)kilishan Wrote:
(06-24-2016, 10:28 PM)Paradinight Wrote: In HTML5 (File API) you can upload the file in small parts. The small parts are put together on the server.
It would be a nice thing if ci support this.

I'll have to look into the specifics of that, since I'm not overly familiar with it, but I would think that Apache/NGINX would handle that and provide it to PHP in the standard $_FILES array. Can you point to any details about this?
Just adding in another example of one JavaScript library's server requirements to support chunked uploads:
https://pqina.nl/filepond/docs/patterns/api/server/

They have a PHP starter kit here for reference: https://github.com/pqina/filepond-boilerplate-php
Reply

#7
My two cents... most of these are all front-end solutions for chunking that has the backend server handling the stitching. The original post made it sound like HTML5 has some native support for this, and if that’s true I would definitely be in favor of including support for that in the framework. I’m not into adding a frontend library to handle it - that could be done in a module.

Incidentally I have a files module for CodeIgniter 4 that uses Dropzone and does chunking, if anyone is interested:
https://GitHub.com/tattersoftware/codeigniter4-files
Reply


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.