Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I am uploading media via the Wordpress media uploader. It says it uploads the file fine (and if I check inside my uploads folder, it is in fact there).

But the image is broken on the frontend, and if I go to the media uploader, it shows a broken image.

enter image description here enter image description here

Now the strange thing, is if I click 'edit image' in the media uploader, it shows me the image...

enter image description here

the link to the image is also correct except when I use that link to view the image I am taken to a 404 page.

I would like to add that I de-activated all the plugins I am using and there is no change. As well, I've given the uploads folder permissions of 777. No change.

The uploader works fine on my remote server, but this happens when I use the site locally (using MAMP).

I just want to know what the problem is and if it is something that will occur when I set the site live on another server...What is going on?

Any help is appreciated!

share|improve this question

closed as too localized by toscho May 22 '13 at 15:06

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question.

    
What happens when you paste the File URL into the address bar? 404? What are the broken image URLs? How do those compare to the working images' URLs in "edit image" –  Zach L Sep 11 '12 at 15:47
    
Well, the one that works is an ajax call while the other one is just the link to the image (which should work) –  jasonaburton Sep 11 '12 at 16:39
    
Found the problem. I had a .htaccess file in the uploads folder that was preventing it from working. –  jasonaburton Sep 11 '12 at 17:04
    
@jasonaburton - please, add the solution as an Answer, so this Question doesn't hangs in the "Unanswered" category... –  brasofilo Nov 5 '12 at 13:16
add comment

1 Answer 1

The OP had a .htaccess file in the uploads directory

share|improve this answer
add comment

Not the answer you're looking for? Browse other questions tagged or ask your own question.