Title: Error saving media attachment
Last modified: August 19, 2016

---

# Error saving media attachment

 *  [grianach](https://wordpress.org/support/users/grianach/)
 * (@grianach)
 * [16 years, 10 months ago](https://wordpress.org/support/topic/error-saving-media-attachment/)
 * Fresh install of 2.8.1 for a new site and I keep getting
 * > Error saving media attachment.
 * when I try to upload a media file. My wp-content/uploads exists, has been chmod
   777 -R and “Store uploads in this folder” is set to wp-content/uploads in the
   miscellanous settings. Plugins have been turned on and off, different directory
   tried but still not working.
 * I’ve tried the suggestions on the [Image/Media Uploader problems?](http://wordpress.org/support/topic/164999?replies=1)
   post but that doesn’t resolve it. Am I missing something obvious here?

Viewing 15 replies - 1 through 15 (of 28 total)

1 [2](https://wordpress.org/support/topic/error-saving-media-attachment/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/error-saving-media-attachment/page/2/?output_format=md)

 *  [slr](https://wordpress.org/support/users/slr/)
 * (@slr)
 * [16 years, 10 months ago](https://wordpress.org/support/topic/error-saving-media-attachment/#post-1137460)
 * I’m having the same problem grianach.
    I did the same things that you did in 
   creating the folder and changing the permissions. I also just tried uploading
   images into the folder via FTP, but the WordPress system didn’t recognize them
   either. The upshot is that I can’t access images in any way for my new WP installation.
   What did I miss?
 * (PS- in another WP installation _upgraded_ to 2.8.1 I have no problem with images)
 *  [slr](https://wordpress.org/support/users/slr/)
 * (@slr)
 * [16 years, 10 months ago](https://wordpress.org/support/topic/error-saving-media-attachment/#post-1137490)
 * I solved this problem by deleting and re-creating my uploads folder.
 * I also walked away for 24 hours…maybe a caching issue?
 * Don’t know why it worked but it did.
 *  [felipex26](https://wordpress.org/support/users/felipex26/)
 * (@felipex26)
 * [16 years, 10 months ago](https://wordpress.org/support/topic/error-saving-media-attachment/#post-1137501)
 * Hi, I´m having the same problem…
 * Any new?
 *  [felipex26](https://wordpress.org/support/users/felipex26/)
 * (@felipex26)
 * [16 years, 10 months ago](https://wordpress.org/support/topic/error-saving-media-attachment/#post-1137502)
 * I resolved This Problem, first i created the uploads folder and has been permision
   777 all directory.
 *  [lauras_2009](https://wordpress.org/support/users/lauras_2009/)
 * (@lauras_2009)
 * [16 years, 9 months ago](https://wordpress.org/support/topic/error-saving-media-attachment/#post-1137615)
 * Same problem here. In my case I had changed the site url, and the upload seems
   to be looking in the old place. I restarted Apache and MySQL server, but that
   didn’t help.
 * I suppose I could just try putting the files in the old place, maybe that would
   help … bogus hack though.
 *  [lauras_2009](https://wordpress.org/support/users/lauras_2009/)
 * (@lauras_2009)
 * [16 years, 9 months ago](https://wordpress.org/support/topic/error-saving-media-attachment/#post-1137617)
 * I think I got it working — if I try to add media from the left column of the 
   admin, it doesn’t work, it’s looking for the wrong directory. (Use the Flash 
   Uploader rather than the Browser Uploader … it tells you specifically where it
   tried to create a directory to put the file).
 * However, if I use the WYSIWYG editor and click on the little “Upload/Insert –
   > Add an Image” icon at the top of the text entry box, then WP can find and upload
   the image. You are not done however … You must now put the image in a directory*
   outside* of your theme directory: in wp-content/uploads/<year>/<month>/ and WP
   will be able to find and display that image.
 * I don’t know if this will work for the long term since it’s such a hack, but 
   it’s working for me at the moment.
 *  [martinbean](https://wordpress.org/support/users/martinbean/)
 * (@martinbean)
 * [16 years, 9 months ago](https://wordpress.org/support/topic/error-saving-media-attachment/#post-1137622)
 * I’m having the same difficulties, but with the Flash uploader the only message
   I get is the extremely helpful “HTTP error”.
 *  [Sea Jay](https://wordpress.org/support/users/jcollier/)
 * (@jcollier)
 * [16 years, 8 months ago](https://wordpress.org/support/topic/error-saving-media-attachment/#post-1137650)
 * I’ve experienced several different issues related to this thread, most now resolved.
 * – The Upload directory is often defaulted to root or nobody permissions so that
   all assets are managed by WordPress, rather than uploaded or downloaded via FTP.
   That allows WP to keep metadata in sync with assets. Through FTP you will be 
   disallowed from making changes to permissions. A root administrator needs to 
   make the changes.
 * – The Flash uploader “HTTP error” is a different problem, related to Flash itself.
   Search the forums for several other threads on this.
 * – After all that, I’m still seeing “Error saving media attachment” but only with
   large files. We added this to the htaccess file with no change.
 * <IfModule mod_php5.c>
    php_value post_max_size 50M </IfModule>
 * Are there other places where upload size is set?
 *  [edmin](https://wordpress.org/support/users/edmin/)
 * (@edmin)
 * [16 years, 6 months ago](https://wordpress.org/support/topic/error-saving-media-attachment/#post-1137684)
 * Hi all,
 * I have found that simply leaving a leading slash ‘/’ on your upload URL will 
   cause this problem.
 * Settings > Miscellaneous > Store uploads in this folder
 * Make sure this is set to:
 * wp-content/uploads
 * and not
 * /wp-content/uploads
 * Hope that helps someone!
 *  [copperbot](https://wordpress.org/support/users/copperbot/)
 * (@copperbot)
 * [16 years, 6 months ago](https://wordpress.org/support/topic/error-saving-media-attachment/#post-1137689)
 * edmin, you are a champion! Thank you so much!
 *  [nostradamuszen](https://wordpress.org/support/users/nostradamuszen/)
 * (@nostradamuszen)
 * [16 years, 6 months ago](https://wordpress.org/support/topic/error-saving-media-attachment/#post-1137693)
 * Same problem here – none of the above hacks worked for me. Using a fresh install
   of WordPress 2.8.5.
 * Isn’t this a **MAJOR BUG** in WordPress?
 * I tried setting permissions on all directories to 777, but still no luck.
 * Hang on . . . I set permissions on wp-content to 777
 * Then, I uploaded my images via Dreamweaver to uploads/2009/11 . . .
 * Still no content when I went to the Library though.
 * But, then, I found I *could* upload an image via the flash uploader.
 * How bizarre is that???!!!
 * It’s a hack, Jim, but not as we know it!
 * Cheers, Mark
 *  [nostradamuszen](https://wordpress.org/support/users/nostradamuszen/)
 * (@nostradamuszen)
 * [16 years, 6 months ago](https://wordpress.org/support/topic/error-saving-media-attachment/#post-1137694)
 * OK, even more confused – it seems to work now without FTPing the images beforehand–
   maybe it is just a caching issue?
 * (Or maybe setting wp-content to 777 sorted it – will we ever know?)
 *  [Devin Walker](https://wordpress.org/support/users/dlocc/)
 * (@dlocc)
 * [16 years, 6 months ago](https://wordpress.org/support/topic/error-saving-media-attachment/#post-1137695)
 * I wrote an article that may help some of those with wordpress uploading files
   to the wrong directory: [Please check it out here!](http://www.dlocc.com/articles/wordpress-uploads-media-to-wrong-directory-solution/)
 * Basically it says go to Settings > Miscellaneous > Upload media to directory…
   like Edmin’s post says.
 * Hope this helps!
 *  [peterhudec](https://wordpress.org/support/users/peterhudec/)
 * (@peterhudec)
 * [16 years, 4 months ago](https://wordpress.org/support/topic/error-saving-media-attachment/#post-1137704)
 * I had the same problem, nothing helped. After an hour of confusion i called my
   hosting provider.
    They said it was because of some security mode, that PHP could
   not write files to server. They changed the settings and it works now like a 
   charm. Hope, this was helpful for you
 *  [edzrie_s](https://wordpress.org/support/users/edzrie_s/)
 * (@edzrie_s)
 * [16 years, 3 months ago](https://wordpress.org/support/topic/error-saving-media-attachment/#post-1137713)
 * same problem as above.i delete the database and create a new one.simply do it
   again from the start.works fine 🙂

Viewing 15 replies - 1 through 15 (of 28 total)

1 [2](https://wordpress.org/support/topic/error-saving-media-attachment/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/error-saving-media-attachment/page/2/?output_format=md)

The topic ‘Error saving media attachment’ is closed to new replies.

## Tags

 * [media library](https://wordpress.org/support/topic-tag/media-library/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 28 replies
 * 25 participants
 * Last reply from: [amajorov](https://wordpress.org/support/users/amajorov/)
 * Last activity: [15 years, 10 months ago](https://wordpress.org/support/topic/error-saving-media-attachment/page/2/#post-1137754)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
