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

ufku’s picture

I 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 Only local images are allowed. tag to allowed html tags at admin/filters/1.

ufku’s picture

as 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.

MsDetta’s picture

While 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??

ufku’s picture

you 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.

MsDetta’s picture

Sorry, 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.

MsDetta’s picture

See this thread also:
http://drupal.org/node/92852

ufku’s picture

if 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.

ufku’s picture

Category: bug » support
Status: Active » Closed (fixed)

i hope you found a solution.

MsDetta’s picture

Yes 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?