• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Large File Upload Frustrations..


I really need to find a large file upload solution that works for an application I'm working on. It's for file sizes from about 10Mb to 40Mb and preferably with a progress bar.

I've tried SWFUpload, Flash File Uploader & CI's Uploader class but have problems with all of them. Flash File Uploader probably works the best, while it actually uploads the file, it hangs at 100% and doesn't fire the upload_complete() function.

Has anyone found a solution that actually works and is easy to implement in CI?? I hear Perl is good for large uploads, anyone know of a good script and/or tutorial on getting it going in CI??

Any help would be appreciated.



I'm not sure if it's possible to do file sizes that big. You should check the max file size for uploaded files on your server.

What is your php.ini set to for the following:


Would the memory limit make any difference? I thought files would be written straight to the hard drive.

According to the docs, yes.

AFAIK though, the file is just written straight to the hard drive, so I'm not sure what the memory limit has to do with it. I have faith in the docs though, and assume they know more than me. Smile

Now if you were resizing the upload (if an image), then I can say for sure the memory_limit is a factor.

Ya learn something new ever day.

I agree. Can't argue with "The Docs". Smile

Thanks guys,

Here are my settings:

upload_max_size: 50M
post_max_size: 50M
max_execution_time = 120
max_input_time = 180
memory_limit: 32M

What are the upper limits of max_execution_time and max_input_time? What are the disadvantages, if any, of having a higher number, say in the 1000s?

Is the upload lasting longer than 2 minutes? I'd imagine it would be, so that's probably at least part of your problem.

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  

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