Closed (duplicate)
Project:
FileField
Version:
5.x-2.0
Component:
Miscellaneous
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
13 Jan 2008 at 11:19 UTC
Updated:
13 Jan 2008 at 11:52 UTC
I get this error when I'm uploading 6 files, that totals more than 30MB.
The files are named blabla1.mp3 blabla2.mp3 etc.
user warning: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'FROM content_ WHERE vid = 0 LIMIT 0, 1' at line 1 query: SELECT FROM content_ WHERE vid = 0 LIMIT 0, 1 in /home/vusers/domains/MYDOMAIN.com/wwwdocs/innhold/includes/database.mysql.inc on line 172.
This error fills the Ajax interface, and files are removed from whereever they are temporarly stored.
Does this has something to do with my SQL/PHP settings? Since uploading 6 files that is under 30mb in total works just fine.
Comments
Comment #1
jpetso commentedYes, this is due to not properly catching the case when $_POST is empty, and that happens when your PHP file upload size limit is exceeded. Duplicate of issue 180023.
Comment #2
gladideg commentedYes.
Even if I save the 3 first files, then upload 3 more it still gives the same error.
But I'll try to raise the file size limit.
Thank you
EDIT: Found out that I needed to change :
; Maximum size of POST data that PHP will accept.
post_max_size = 8M
to
; Maximum size of POST data that PHP will accept.
post_max_size = 50M
Not just :
; Maximum allowed size for uploaded files.
upload_max_filesize = 100M