Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
By fudge714 on
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
anybody?
I'm still having this issue and still no ida on how to fix it...
bit more info
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:
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?
.htaccess file?
Sorta figured it out...
when drupal claims the folder it puts a .htaccess file in there which says:
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?
htaccess and images
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
Drupal will than create new thaccess file and I can see images
check the settings in your htaccess file in the files directory
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