tags:

views:

151

answers:

2

hi,

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

A: 

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.

flamingLogos
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 ?
Patrick
A: 

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);

Patrick

related questions