I have tinyMCE with IMCE, the image module and also the imagefield module for CCK. I can upload images through each of these, and the image is correctly uploaded, I can see that via ftp. However I can't view the image directly at its address in a browser and also the images just don't show up where they're supposed to within the nodes.
I am using the public file system, so thats not the problem. Have been surfing the forums and can't find anything similar.
help appreciated...

Comments

fudge714’s picture

I'm still having this issue and still no ida on how to fix it...

fudge714’s picture

OK, so some more testing seems to have narrowed the problem down quite a bit..

First it seemed like any image that was uploaded with my FTP program was able to show up, but not any image uploaded through drupal.

Thats not exactly it though cos if I upload any image into the files folder using my FTP program, that won't show up either, only if its into a different folder.

Tried copying the images from the files folder which wouldn't show up into a new folder and linking to there. That works. Then I edit the folder permissions to 777, still works.

Then I change the drupal file system files folder to the new location and thats when it stops working.
And thats even when I'm linking to the image from a non-drupal html page that looks like this:

<html>
<body>
<img src="/file/header_an.jpg">
</body>
</html>

So the problem seems to be something that drupal does to the files when it claims the folder as its file uploads folder. What does it do?

fudge714’s picture

Sorta figured it out...

when drupal claims the folder it puts a .htaccess file in there which says:

SetHandler Drupal_Security_Do_Not_Remove_See_SA_2006_006
Options None
Options +FollowSymLinks

If I delete the .htaccess file, the images start working again.

But it seems that the .htaccess file is reinserted every time I edit a page. Then I delete it and reload the page and the image shows up..

Btw, the clean URL test is not successful on this server

Any idea how to get rid of it?

seghost’s picture

Ii had same problem I can upload images but they won't show
The htaccess file was causing the problem, I've removed it and put empty index.html
files in the directories the htaccess file was trying to prevent directory viewing
this is what htaccess file looks like on my site

#prevent directory browsing -- for security
IndexIgnore */*
AuthType Basic
AuthName "No access"
AuthUserFile .htnopasswd
AuthGroupFile /dev/null
Require valid-user

Drupal will than create new thaccess file and I can see images

messenger’s picture

I had a similar problem and discovered that the htacess file in the files directory had gotten changed.
My images were being uploaded but did not display anywhere on the site and when browsing to the files directory the images did not display.

This is my htaccess file in my files directory, and for me that's all that's in it

SetHandler Drupal_Security_Do_Not_Remove_See_SA_2006_006
Options None
Options +FollowSymLinks