I suspect this problem might lie outside of these modules, so I wasn't really sure where best to post this query...
Drupal 4.6.0 on linux (fairly clean install)
with upload.module I get:
Error attaching file boat-sm.jpg: total file size exceeded
(file is 13kb jpg file: well within limits)
with attachment.module I get:
* File copy failed: no directory configured, or it could not be accessed.
* Error saving upload to filestore.
inline.module switched off.
filemanager.module appears to be working and configured (to default values). eg I tried moving the 'private' folder (chmod 755) into 'files' and got loads of filemanager.lck errors (so I moved it back).
these messages appear at the top of the page, there are no error logs for these incidents.
create_content/image node directly with image.module works, though some of the resizes don't ...
this might be linked with Raj's problem at http://drupal.org/node/22008
any suggestions?
Comments
eg I tried moving the
Try chmod 777. I know it isn't good practice and all that, but chmod 755 has rarely worked for me.
If you run drupal under php-cgiwrap, that should take care of the security.
755 works for most of my directories
cgiwrap is a new one to me and given my host's track record, a pretty unlikely solution.
755 works on my other upload directories - files/images etc - so I'm doubtful that this is causing the problem - but then I don't know much about this!
hmm...
progress: found bug in upload.module 4.6
I found this bug report and patch: http://drupal.org/node/21429
switching the admin/settings/upload ... General settings: Maximum total file size: to 0 (zero = unlimited) allows upload.module to work - as predicted by the bug report. So I think I've found the problem.
Unfortunately I can't get the patch to work! no doubt me being thick. here's my code from upload module:
the patch was adding the * 1024 * 1024 bit - can anyone see any mistakes? Are their any special things not to do when applying patches like this?
The problem with attachment module remains unchanged - so perhaps they are separate bugs after all.
Do you know if there is any
Do you know if there is any progress about the image upload size bug? If there is, how can I fix it please?
Tx!
---
http://creativebits.org
applying the patch
sorry i didn't conclude this thread.
The patch does work for the upload module.
1 Open the upload.module file in a simple text editor (like notepad). (it's in the drupl/modules folder.)
2 Use the 'find' or 'search' function to locate "upload_maxsize_total" and you should see the lines:
3 all you need to do is insert: * 1024 * 1024 into the second line as shown here: (or copy & paste this line)
4 then save it, upload to the server, etc and voila.
Hope this helps.
Thanks a lot!
Thanks a lot! :D
---
http://creativebits.org
Already there
The " *1024 * 1024" string is now included in the upload.module that comes with drupal 4.6.2 (upload.module v 1.31.2.5). But it didn't solve the problem for me. Actually I also tried v 1.4x from the cvs, which also didn't work. I still receive the 'file exceeded' message unless I define file limit to zero (no limit).
And also the attachment module is failing. When the module is enabled, the following message is printed on the top of the pages:
"user error: Unknown column 'title' in 'field list'
query: SELECT aid, title, description, fid, filename, size, hidden FROM attachment WHERE nid = 169 in /home/my_account/public_html/my_drupal_site/includes/database.mysql.inc on line 66."
Durval Tabach
(drupal newbie at archiclube.org)
Durval Tabach
upload.module: Confusing 'help' text on settings page.
The problem I was having turned out to be this:
There's a confusing 'help' text on the upload.module settings page (
www.example.com/admin/settings/upload). Underneath the "General Settings: Maximum total file size"
field it says 'The maximum size of a file a user can upload in megabytes. Enter 0 for unlimited.'
It should be something like, "The limit on the total size of all files uploaded by all users."
Also, the error message when the limit is exceeded would be much more helpful if it were more
specific.
Big thanks to David Hull for clarifying this issue.
Fix it with zeros
Admin can upload, but other users get file exceeded error...
If I log in as admin, I can upload/attach files.
But if I log in as another user, I get the following error (substitute IMG_3408.JPG with any file name tried).
Error attaching file IMG_3408.JPG: exceeds maximum file size
This is version 4.6.3, I did set all file upload limits to 0 for all roles.
It's not an apache or ph thing since I'm able to upload files as an admin.
One thing that came to mind was that I had set up taxonomy_access module and later disabled it and removed it. Will try and see if it's related.
But I don't have a clue of what's happening...
Finally found a solution by making
Maximum file size per upload: 1000
and
Total file size per user: 10000
Apparently the multiplication is not taking place. Don't have much time to look into the code now. But if you just add the zeros, it works ;-)
------
Con paciencia y calma,
sube un burro a una palma
Adding zero's worked for me too.
Adding zero's worked for me too.
Simply setting 0 for each value did not work on drupal 4.6.3, upload.module 1.31.2.5 2005/05/25
seems like the setting is not documented properly...
I took a look at the expanded excerpt for this code:
I did a bit of testing and it appears that:
a) if you upload any additional files to the files folder in Drupal it is possible that the counts will get messed up. I uploaded a 33Mb video on our server but I needed to do that manually through FTP because it was too big for the upload module. I then went in to the tables to update the file sizes and thus I bypassed the error checking of this code.
b) It also appears that the first upload limit setting at
admin/settings/upload
is mislabeled.
The text is:
The maximum size of a file a user can upload in megabytes. Enter 0 for unlimited.
I think it should be:
The maximum combined size of all files uploaded by users in this installation of Drupal. Enter 0 for unlimited.
Though, I am not sure if the code is really debugged for all cases, i.e. what if this is a multi-site installation of Drupal?
hope this info is useful...
-rich
worked for me too
setting = "0" was not working, giving me "exceeds maximum file size". possibly started only after having upgraded to 4.6.11 (the last 4.6 I think, since jumping to 4.7.x breaks some important things).
Setting all the upload sizes to 1 Gig (=1000) eliminated the errors. Maybe my folder's too full? I dunno, I just need it to work.
Thanks for the posts and solutions.