Topic: Do not alert error message.

Hi,

I want to have a custom error handler. What I see in the code, the plugin will always alert error messages of two types : FILE_SIZE_ERROR and FILE_EXTENSION_ERROR

Is there way to unbind predefined error handler and bind my own? (Actually I do, but I see the alert before my own error message.)

Thank you

Re: Do not alert error message.

If you bind your error handler before you call uploader.init(), it will have higher priority than the default handler and you will be able to cancel it by returning false from your handler.

If you want to see your issue fixed, do not report it here, do it on - GitHub.

3 (edited by evpozdniakov 2015-07-09 13:47:37)

Re: Do not alert error message.

Thank you for reply. This might work if I create uploader instance myself. But I can't control this with pluploadQueue.
https://github.com/moxiecode/plupload/b … ue.js#L168

Re: Do not alert error message.

Try preinit option, check the source for Events example to get the idea. All event handlers defined in preinit object will fire before uploader.init().

If you want to see your issue fixed, do not report it here, do it on - GitHub.