Upload file bug server & browser

Added by jeremy petrequin 6 months ago

Hello,

I'm currently working an application using elFinder, everything works fine for the moment, except a bug with file's upload

(I'm in a localhost server : Wamp)

So, when i upload an image,
first bug = the browser keeps on loading the current page,
second bug = after that, I can't access to any page of my website, the server is down, I need to restart it to fix the problem ( though the image is correctly uploaded)

I searched in the Javascript elfinder.full.js (v 1.2), the two problems come from the lines 2118 to 2126 :

 data.error && self.fm.view.error(data.error, data.errorData);
 data.cwd && self.fm.reload(data);
 data.tmb && self.fm.tmb();
}

function complite() {
 self.fm.lock();
 $io.remove();
}

in the "class" upload

So, if I remove the third lines, the second bug was fixed

and, if I remove the method complite, the first bug was fixed

But, the interface doesn't reload

Is anybody have an idea where does the problem come from?

thank you


Replies (1)

RE: Upload file bug server & browser - Added by Troex Nevelin 6 months ago

It looks really ridiculous that elFinder can hangup the whole web server. You're not the first one who says that web server hangs, but all this cases are related to WAMP only, because this bug does not happen on any other servers.

elFinder JS cannot cause server hangup... I think the problem is related with tmb command directly after upload, try to test with thumbnails turned off, and try using different imgLib I suggest the cause of the problem is that imagick or gd module fails for some reason.

(1-1/1)