Large file upload fails

Permalink 1 user found helpful
Hi there. I am experiencing the following error when trying to use the File Manager to upload a large video file:

An unknown error occurred while uploading the file. Please check that file uploads are enabled, and that your file does not exceed the size of the post_max_size or upload_max_filesize variables.

File Uploads: 1
Max Upload File Size: 8196M
Post Max Size: 8196M

Note that I have generously provided 8 GBs of headroom for uploading files. Concrete5 knows this, or else it wouldn't have spit out this detail. Also, I have already uploaded one smaller file, so I know that works.

This is on an Ubuntu Raring Ringtail VM with LAMP server installed and /etc/php5/apache2/php.ini is getting read properly; I am running phpinfo(); on a page on the VM and it's clear from that and from $find / -name php*.ini that there are only two php.ini files in the file system and that the values are what they should be.

Further, I have read the php5 reference doc and the only two things I didn't know about were that the smallest value took precedence over any larger value WRT file size and that you have to set the max time for upload in case you upload a large file--I set mine to 3600 seconds. Concrete5 doesn't come anywhere close to uploading the file let along expending 3600 seconds doing so.

Refreshing the cache doesn't help, as File Manager will pick up the newest values I set those to every time I change php.ini and just throw an error with the newest values.

Yes, those are large values. This instance of Concrete5 is supposed to be a media server and has to accommodate large file sizes, and the VM has over 512 GBs allocated to it on a RAID-10 array, so the virtualization can handle pretty much what I throw at it. I control the Internet connection, the physical server, the VM, and all software on the VM, and I just don't see why this is failing. Especially when the first bit of media I am uploading is just short of 250 MBs.

I'm totally open to some OOTB thinking on this one.

Thanks, Kris

 
jshannon replied on at Permalink Reply
jshannon
PHP doesn't make it easy to upload large files. The error you pasted makes it seem like this is a PHP issue (I'd expect some different text if c5 had a problem handling it).

One of the values that I know affects file uploading is the memory limit. Seehttp://www.radinks.com/upload/config.php... for info on that, and some other settings that you might want to tweak.

You say a smaller file works. You should try successively large larger files to see where it breaks. If it breaks at a "logical" point (e.g. 32mb or 64mb) that might give you some clues.