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.
Installed IMCE and used it to add an image to a page. IMCE showed the uploaded image and added it to the page. When I previewed the page, the image disappeared. When I submitted the page, the image didn't appear.
When I went back to edit the page, the image was there! The image was also stored in my files/images folder.
I finally got a temporary fix by using the "Attach File" to add it to the page.
Comments
Comment #1
ufku CreditAttribution: ufku commentedI think this is the very common "input format" issue. You can't add images to a node with the default filtered HTML format. You must add tag to allowed html tags at admin/filters/1.
Comment #2
ufku CreditAttribution: ufku commentedas you see the
<img>
tag i wrote above was stripped by the input filter :(Corrected: You must add
<img>
tag to allowed html tags at admin/filters/1.Comment #3
MsDetta CreditAttribution: MsDetta commentedWhile Filter is in the list of modules as "Required" -- I don't have admin->filter so what is needed to change the filter to allow img for html??
Comment #4
ufku CreditAttribution: ufku commentedyou should be able to access "input formats" settings under "administer" menu. or you can select "full html" as input format in node add/edit page.
Comment #5
MsDetta CreditAttribution: MsDetta commentedSorry, I had already used the full html (because I copied the code from my text editor) and the image didn't display. The image tag was even coded correctly. The image did not display until I attached the image as a file.
Comment #6
MsDetta CreditAttribution: MsDetta commentedSee this thread also:
http://drupal.org/node/92852
Comment #7
ufku CreditAttribution: ufku commentedif you can see the image in tinymce correctly, then it meas IMCE works correctly(sending the correct path to tinymce). if your image is stripped after submission, it means filtering is in action. you have to solve that filtering issiue.
Comment #8
ufku CreditAttribution: ufku commentedi hope you found a solution.
Comment #9
MsDetta CreditAttribution: MsDetta commentedYes and no. I couldn't find where to make changes because the files folder was giving problems. Files was 777, other folders under Files showed 775, when I tried to change permission, they then showed 777, but got fatal errors. Apparently, the magic_qts was causing the problems. Couldn't change this through htaccess. Contacted host who found the problem.
Since I'm not the only one having this kind of problem, I can only think there is something wrong with Drupal's set up of the files folder.
So yes solved, but why?