[ticket/11915] Check if trigger_error() was called after sending chunk.

PHPBB3-11915
This commit is contained in:
Cesar G 2013-11-27 15:49:16 -08:00
parent a70f08513d
commit 8b351104ed

View file

@ -563,6 +563,11 @@ uploader.bind('ChunkUploaded', function(up, file, response) {
});
}
// If trigger_error() was called, then a permission error likely occurred.
if (typeof json.title !== 'undefined') {
json.error = {message: json.message};
}
if (json.error) {
file.status = plupload.FAILED;
up.trigger('FileUploaded', file, {