When clicking on upload, the file didn't appear in the listing nor did any success message appear saying it has been uploaded even though it did upload behind the scenes. Closing the imce dialog box and reopening it caused the file to appear.
Debugging the code I found in imce.js '//settings for upload' there were two potential issues:
1. There is a try / catch around imce.processResponse($.parseJSON(response)); so I couldn't see any errors coming back.
2. The dataType returned is 'text', rather than 'jsonp'. Changing it to jsonp fixed the issue.
The strange thing is this was working for a while and then stopped working but it looks like this was the root cause.
Could you confirm this is a bug and an appropriate fix?
Comments
Comment #2
rcls commentedI seem to have the same bug here. We have an Image field attached to our /node/add/ which uses IMCE file browser to attach files to the field. After I select an image, the browser window closes, but all that happens for me is 'Please wait..' flickers twice, then no image appears in the field. I get no JS errors in console. Fix #1 didn't work for me.
Comment #3
ufku commentedUnable to reproduce this. It could be a conflict with another module/theme js.
Comment #4
ufku commented