I'm new to drupal, so take it easy on me. Just installed this module into drupal 5.1. Everything is working great except for one little problem. I'm having trouble uploading any file over 2mb. Anything under this size works fine. I have changed the file size settings under admin and still get the same problem. Any suggestions, I love this module and I'm very excited to get it working to it's full potential if possible. I'm running on IIS 6. I also had a error when first trying to upload files, the error was
Field 'fdesc' doesn't have a default value query: INSERT INTO webfm_file (uid, fpath, fname, fsize, fmime) VALUES (1, 'files/Files/Software/Putty 059.zip', 'Putty 059.zip', 249677, 'application/zip') in C:\Inetpub\wwwroot\includes\database.mysqli.inc on line 151
I changed the Null value to null to get it to work. Any information on this also would be appreciated. Thank you and Great Job on the module!
Comments
Comment #1
robmilne commentedI don't have a fresh install handy to check this but you may have to create a role that has webfm admin rights. There should appear a collapsing fieldset under admin/settings/webfm for that role where you can set larger limits.
Comment #2
robmilne commented...and this isn't the first time I've heard about the fdesc issue. It'll get fixed in the next rev.
Comment #3
emeisner commentedVery Strange. I can upload files that are under 2 MB, but anything over that give me errors. However, I can dump files over 2MB into the FTP folder then copy to files folder and it works fine. The error I'm getting is file_check_upload()failed. I have check the admin settings and set the max size and total size for users to 10 and 50MB. Any other suggestions, thanks for your time, and keep up the good work.
Comment #4
andremolnar commentedfile_check_upload Failed:
This is a php configuration issue that I've had the pleasure of debugging before:
The short answer to the problem is:
max_file_upload needs to be larger
If say for example php max_file_upload is set to 2MB and you upload a 2MB+ file the entire $_POST variable gets wiped out - and that produces the 'file_check_upload' Failed error.
I'm going to include a more verbose error message saying that that may be the cause of the problem.
AND - there probably should be some code to test what the php setting is and not allow admins to increase the webfm max size beyond that limit.
andre
Comment #5
emeisner commentedChanged the max upload limit in php.ini and it works fine now. Thank You.