imce : invalid filename

jdev - August 8, 2007 - 14:28

When I try to upload image by Imce , it gives invalid filename error.
Its working in old server, last night I moved site to new server.

-----
Sharique

imce

kavithra - August 8, 2007 - 16:10

Did you check the file permissions of the files directory. you have to chmod it to 777, all the folders in the files directory.

Kavita

Yes

jdev - August 8, 2007 - 17:10

files directory and its sub-directory all are have 777 permission.
-------
Sharique uddin Ahmed Farooqui
Web Developer
http://it.Managefolio.com

upgrade to latest imce

greg@wisebread.com - August 14, 2007 - 04:22

I encountered this problem today after upgrading a site from 4.7.7 to 5.2. Turns out my IMCE module was not the latest and greatest. (I had installed a devel/test 5.x codebase many months ago....)

This problem is brought up in this bug report, and seems to be fixed in the May 10 5.x-1.0 IMCE release (that's the version I installed that fixed the issue).

HTH.

Greg

Same Problem...

crystalnuding - September 18, 2007 - 21:37

"....and seems to be fixed in the May 10 5.x-1.0 IMCE release (that's the version I installed that fixed the issue)."

I've installed this new version and am still having the same trouble.

Any other ideas?

Fixing this bug

kirnik - September 24, 2007 - 02:55

Replace line 240 in imce.module from
$file['name'] = substr($file['name'], -48); //max filename lenght is 48

to
$file['name'] = strlen($file['name'])>48 ? substr($file['name'], -48) : $file['name'];

(thanks to ufku, see http://drupal.org/node/133117)

Thanks from me also

eigentor - October 13, 2007 - 16:16

Hooray, quickest fix ever for me, thanks ufku and kirnik

I'm happy being miserable

Super! Thanks

barto - November 28, 2007 - 19:25

Super! Thanks

 
 

Drupal is a registered trademark of Dries Buytaert.