Forums

[WP 2.8.4] - media uploading: "Error saving media attachment." (7 posts)

  1. andrade
    Member
    Posted 1 month ago #

    Hello,

    After doing a fresh install of WordPress 2.8.4 I got the following error while trying to upload media to the library:

    Error saving media attachment.

    After reinstalling thrice I got this feeling there was nothing wrong with the files. I downloaded a new WordPress copy from wordpress.org each time.

    After some googling and search in wordpress.org found more people complaining about this and apparently people have been changing the uploads directory permissions to 777.

    1. Is this secure? Having the uploads directory with 777 will allow anyone to do whatever they want with it or am I wrong?

    2. Also, I tried it once and then set the directory back to what is was: 755. I noticed that the photo I uploaded had permissions set to 666 which allows anyone to write. Once again, will this be secure or can someone just go there and mess around with the files?

    3. Is there another way around the problem that does not include turning off PHP safe mode?

    Bye,
    Daniel

  2. esmi
    Member
    Posted 1 month ago #

    Try changing the permissions on the wp-content directory to 766. If you still have problems, try 767 or 777. Once your uploads are working, change the permissions on wp-content back to 755 again and check that everything still works OK.

  3. andrade
    Member
    Posted 1 month ago #

    My upload directory is wp-content/uploads.

    I set both directory permissions to 777, uploaded an image, then set them back to 755. Now I can't upload media again.

  4. esmi
    Member
    Posted 1 month ago #

    Possible mod_security problem?

    See point 6 on http://wordpress.org/support/topic/164999?replies=1

  5. andrade
    Member
    Posted 1 month ago #

    Tried doing what says on 6. and it is still not working unless the directory uploads is set to 777.

    Could this be a host problem?

    --
    Also, the only media file I uploaded (while having uploads set to 777), an image, has its permissions set to 666 and I read that files should not be above 664 unless there was a good reason for it. Is this okay, will there be any security problems? My source: http://wordpress.org/support/topic/50863?replies=15.

  6. CopperBot
    Member
    Posted 3 weeks ago #

    I recently started having this problem myself and I cannot for the life of me figure out why. I've tried checking the permissions for the folders in question. I've tried deactivating all of my other plugins to make sure there is no conflict. I even upgraded to the new 2.8.5 hoping that would fix it but it's still broken. Every time I try using the browser uploader I get:

    "Error saving media attachment."

    If I try the flash uploaded it says:

    "Unable to create directory /wp-content/uploads/2009/10. Is its parent directory writable by the server?"

    I am at my wits end... please somebody help me figure this out.

  7. dontweight
    Member
    Posted 3 weeks ago #

    Hi guys, Im having the same problem as CopperBot, is it a server issue?

Reply

You must log in to post.

About this Topic