• soulsizzle

    (@soulsizzle)


    When attempting to upload an image, it will upload to the proper directory and then hang. WordPress’s “Add an Image” dialog will not then display any information about the uploaded files, no thumbnails were created, and it is not actually added to the media library.

    FireBug’s console is telling me that /wp-admin/async-upload.php is returning a 403 forbidden. What gives?

Viewing 8 replies - 1 through 8 (of 8 total)
  • Thread Starter soulsizzle

    (@soulsizzle)

    Also note that async-upload.php is being passed an attachment_id value of ‘0’. It seems in a blog that is working order passes some value instead of 0.

    Save your upload path again, Admin > Settings > Media , default is wp-content/uploads .. sometimes uploads play up after upgrading, and for unknown reasons, resaving that setting is known to solve the issue for some users.

    Not a guaranteed it will help, but only takes a few moments to do..

    NOTE: You’ll need to try a fresh/new upload after the above to verify if it worked/helped.

    Thread Starter soulsizzle

    (@soulsizzle)

    I did this. I’ve also ensured that my directories have the proper permissions. Uploads work just fine if I “Save Draft” before hand. I’ve tried disabling all my plugins. They don’t seem to be the culprit.

    Thread Starter soulsizzle

    (@soulsizzle)

    It appears that the file is being uploaded with incorrect permissions. Unfortunately, this WordPress install resides on an IIS, and permissions are constant battle.

    Uploads work fine if I “Save Draft” before hand, am uploading directly in the media library, uploading images into a gallery using NGG, etc.

    The only time it is a problem is when uploading images to be inserted into a new, unsaved posts.

    I, personally, would be happy to simply “Save Draft” every time; however, this is a client project, and desirable to keep things simple for them.

    I’m not sure specifically what the cause is, nor how to help.

    Perhaps the issue lies in creating a tmp directory for the upload, which ties in with a blog here.
    http://joseph.randomnetworks.com/archives/2007/09/04/wordpress-file-uploads-with-iis/

    Beyond that, iis isn’t something i have any experience with myself, perhaps someone else can advise further.

    Thread Starter soulsizzle

    (@soulsizzle)

    I’m familiar with that article, and had already made the adjustments it suggested. It didn’t get me to the point where I can upload after “Save Draft,” when uploading directly to the media library, and in NextGen Gallery. However, I still can’t upload if I don’t Save Draft before hand.

    Thanks for your help anyways. This is my first project with IIS and hopefully my last.

    esmi

    (@esmi)

    I still can’t upload if I don’t Save Draft before hand.

    As far as I’m aware, no one can!

    The whole “image attachment” process requires that an image uploaded whilst editing a Page or Post is linked to it’s parent post/page. That link is based in the parent’s id. Since a post or page doesn’t have an id until it’s been at least been saved in draft form, it follows that the no link between the image and the post/page can be made either.

    Normally, the auto-revision saves every few minutes, so this issue isn’t noticeable. But if you’ve extended the auto-save significantly or disabled it, you’re going to have save the draft manually before you can upload an image attachment.

    Does that all make sense?

    Thread Starter soulsizzle

    (@soulsizzle)

    That does, esmi. For whatever reason, the client asked that I disable autosave. I did so around the time I migrated their site from my test server to their production server, so I just assumed it was a server issue. I’m glad to finally have a reason why this is occurring.

Viewing 8 replies - 1 through 8 (of 8 total)

The topic ‘Issue with image upload’ is closed to new replies.