Unable to upload large file

Phoca Download - download manager
Bestrafung
Phoca Newbie
Phoca Newbie
Posts: 3
Joined: 24 Oct 2011, 07:42

Unable to upload large file

Post by Bestrafung »

I just installed and setup Phoca Download and have already uploaded several pdf and video files ranging from 1 to 3 MB without issue. I have been unable to upload a 12.2MB video file and receive the error:

Code: Select all

Message
Unable to upload file
The video I'm having trouble with is "From Pot to Collector_1.flv". I have checked folder permissions (even though other files upload without issue), Phoca settings, and PHP settings. I still have not found an issue unless I'm overlooking something.

Phoca Download settings:
Path: /home/xxxxx/public_html/xxxxx/phocadownload/
drwxr-xr-x (755)
Maximum Upload Size (Administration) 52428800

Code: Select all

[-bash-3.2 root@server1: /home/xxxxx/public_html/xxxxx] # ls -alh phocadownload
total 6.7M
drwxr-xr-x  3 xxxxx xxxxx 4.0K Oct 28 14:21 ./
drwxr-xr-x 22 xxxxx xxxxx 4.0K Oct 28 14:35 ../
-rw-r--r--  1 xxxxx xxxxx 34K Oct 28 13:52 document1.pdf
-rw-r--r--  1 xxxxx xxxxx 33K Oct 28 14:15 document2.pdf
-rw-r--r--  1 xxxxx xxxxx 47 Oct 14 12:27 index.html
-rw-r--r--  1 xxxxx xxxxx 1.9M Oct 28 11:37 major\ flashing.flv
-rw-r--r--  1 xxxxx xxxxx 1.9M Oct 28 14:11 river-1.mp3
drwxr-xr-x  2 xxxxx xxxxx 4.0K Oct 14 12:27 userupload/
-rw-r--r--  1 xxxxx xxxxx 2.9M Oct 28 14:21 violent\ flashing.flv
php.ini verified with phpinfo():
upload_max_filesize=50M
post_max_size=50M

Any ideas would be much appreciated as I can't think of anything else to check right now.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48568
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Unable to upload large file

Post by Jan »

Hi, really no idea what can be wrong, seems like everything is Ok:

- check the php.ini again, maybe there is some other limit (except the upload and post)
- set the filename without diacritics and without space: FROM: From Pot to Collector_1.flv TO: From_Pot_to_Collector_1.flv

:idea:

Jan
If you find Phoca extensions useful, please support the project
Bestrafung
Phoca Newbie
Phoca Newbie
Posts: 3
Joined: 24 Oct 2011, 07:42

Re: Unable to upload large file

Post by Bestrafung »

I've got it worked out now. I found an error_log in my administrator folder and it was clear the 50M setting wasn't working correctly:

Code: Select all

[29-Oct-2013 14:03:41 America/New_York] PHP Warning:  POST Content-Length of 12831339 bytes exceeds the limit of 8388608 bytes in Unknown on line 0
8388608 bytes = 8M not 50M

So I copied the phpinfo script to administrator and sure enough the 50M settings weren't being inherited by the administrator subdirectory. I thought it was default behavior on a cpanel system for the subdirectories to inherit .htaccess and php.ini settings so there may be an issue with my setup. After moving the php.ini override to the administrator folder everything is working fine. Thanks for the assistance.


EDIT: How do I mark this issue as solved?
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48568
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Unable to upload large file

Post by Jan »

Ok, great to hear it.

Jan
If you find Phoca extensions useful, please support the project
Post Reply