I discovered a bug that prevented me from uploading a photo in the IMCE browser. After upgrading an older version of IMCE from 6.x.2.3 to 6.x.2.6 I was no longer able to upload a file. I would click the file input button, select the file on my computer and when I would click on the upload button, nothing would happen.

I debugged the javascript in Chrome and discovered that the uploadValidate method in imce.js was returning false on line 428. The lines that check for the presence of a file path were lines 427 and 428:

var path = $('#edit-imce').val();
if (!path) return false;

When I changed them back to the version from 6.x.2.3 the uploading feature worked.

var path = data[0].value;
if (!path) return false;

I'm not sure if this is related to something else, but this fix got me back in business and I wanted to at least submit it.

Comments

ufku’s picture

Priority: Major » Normal
Status: Active » Closed (cannot reproduce)

Please make sure this is reproducible without any IMCE related modules.