Hi,

I'm using Drupal 5.1, tinymce and imce. When I upload a file using imce, the filename is shown in the image list, but when I click on it, it doesn't show the preview. It also doesn't show the image on the post body when I click the add button.

On the other hand, if I don't open the imce dialog but write the filename into tinymce image dialog:
* If the file had been uploaded by imce, it doesn't show neither the preview nor itself on the post body when confirmed the dialog.

* If the file had been uploaded by ftp before, it immediately displays both preview and the image on the post body.

I've read something called closure, when I looked at page.tpl.php, print $closure existed but no more about it.

(I've adjusted the default filter as Full HTML.)

Comments

ufku’s picture

selam emre,

this seems to be a file permission issue. can you check and compare CHMOD values of files that you uploaded by ftp and by IMCE? IMCE-files should have chmod 664, which gives access permission to everyone.
You should be sure that PHP-uploaded files are accessible by everyone. For example you may try upload.module(core) and see if you can access the files you upload with it.

aladagemre’s picture

Selam,

I have checked out the permissions. I've gave 664 to files, 664 to u1, 664 to u3 and the content(jpeg files) inside these directories.

I copy a file and can paste it into files directory but I can not do the same for the u1 and u3. When I try to paste into either u1 or u3, it gives out error: "... can not be written".

By the way, I could not understand the upload.module(core) expression you mentioned.

Thanks...

ufku’s picture

sorry, i forgot to mention that folder permissions should be 775, meaning that they are writable. Files should be 664.
Why i suggest trying upload module, is to see if the issue is directly related to IMCE. If you face the same issue with upload module than it means there is an access problem related to PHP uploaded files. And this should be corrected on server-side.

(istersen iletisim formundan turkce mesajlasabiliriz.)

aladagemre’s picture

I changed the permissions of files folder for the Others group Readable -> Readable and Writable and I'm not sure whether this caused or not but it now works.

Thanks...

ufku’s picture

Status: Active » Closed (fixed)