Bug #315
closed
Can't upload images to gallery
Added by Matt Gold over 14 years ago.
Updated over 14 years ago.
Category name:
WordPress (misc)
Description
Upon trying to upload images through the media uploader to the Image Credits page ( http://commons.gc.cuny.edu/about/images/ ), I received the following error message: "Sorry, you must delete files before you can upload any more." That seems strange, since I think we only have 8 or so images in the Library. Maybe we've exceeded the size limit somewhere?
- Status changed from Assigned to Reporter Feedback
I think the problem is that BuddyPress-wide uploaded files (documents, etc) are being stored in blogs.dir/1/files and thus being counted against blog 1's storage limit. There are a few solutions:
1) Turn off the blog upload space check (Site Admin > Options). This can be done right away.
2) Write a snippet that skips the blog storage space check for blog 1. This isn't too hard but it will have to wait for 1.0.2.
FWIW I think the way that file uploads are handled, especially on blog 1, is changed pretty radically in WP 3.0. So it might not be worth putting a ton of time into the issue. But I do see a way to fix it with just a line or two of code.
Side note: This doesn't affect the ability of BuddyPress plugins to upload to this space, because those uploads don't get run through wpmu_checkAvailableSpace, while Dashboard > Media > Add Media does. Essentially, the fix involves unhooking that function on blog_id = 1.
Whatever you think is best.
- Status changed from Reporter Feedback to Hold
- Target version changed from Not tracked to 1.1
I'm going to set the ticket to Hold with a target version of 1.1, in the hopes that upgrading to WP 3.0 will make the problem go away magically. In the meantime, if you want to upload images for use on the main Commons blog, upload them to a different blog (like the News blog) and hotlink.
Okay -- that sounds good, and it's a decent temporary solution.
- Status changed from Hold to Resolved
- Target version changed from 1.1 to 1.0.3
Also available in: Atom
PDF