1

I don't understand why I get this error when I upload images...

The selected file intersection.png could not be uploaded. The file is not a known image format.

It is just a png file, and the problem came when I moved the website on the server. On localhost everything was perfect.

1) I've deleted the "files" folder and created it again with a php script (to make the server the owner) 2) drupal automatically creates 2 folders into it (imagecache and temp) so I assume it has the privilegies to write into it. 3) I've changed the temporary folder in Settings > Filesystem from "/tmp" to "temp", since I got an error before (probably the /tmp folder on the server is not writable by drupal

thanks

4
  • I tried another image format: The selected file logo.jpeg could not be uploaded. The file is not a known image format. I've set the temporary folder back to /tmp, still nothing...
    – aneuryzm
    Feb 26, 2010 at 20:58
  • The Web server is Microsoft-IIS/6.0. Is ImageChache not compatible ? Please tell me there is solution otherwise it is a bad problem :(
    – aneuryzm
    Feb 26, 2010 at 21:17
  • imagecache will work after uploading. so your first problem is creating file first in tmp folder, next in files folder. Check your permissions again...
    – Nikit
    Feb 27, 2010 at 0:54
  • I just realized the problem is that rewriting is not working and I cannot use cleanURLs. I don't have access to server configuration file, is there any way I can enable rewriting ?
    – aneuryzm
    Feb 27, 2010 at 8:40

3 Answers 3

1

http://drupal.org/project/transliteration I think this module help me in my problem related this issue.

0

There's a known problem with Drupal 6.15 and IIS (see http://drupal.org/node/419734). If you're on 6.15, try backing down to 6.14 until a fix is completed.

1
  • hi, thanks for link. I will defintely keep it in mind. However, I just realize rewriting is not working on the server, and I cannot use cleanURLs, which are required by imagecache module. So... is this something I have to fix before, right ? Can you give me any tip ?
    – aneuryzm
    Feb 27, 2010 at 8:53
0

I solved it. The rewrite module is not enabled on my IIS server, so I had to change a line of code inside the imagecache.module to add "index.php?q=

return url($GLOBALS['base_url'] . '/index.php?q=' . file_directory_path() .'/imagecache/'. $presetname .'/'. $path, $args);

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.