mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-16 22:51:23 +02:00
[ticket/11915] Check if trigger_error() was called after sending chunk.
PHPBB3-11915
This commit is contained in:
@@ -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) {
|
if (json.error) {
|
||||||
file.status = plupload.FAILED;
|
file.status = plupload.FAILED;
|
||||||
up.trigger('FileUploaded', file, {
|
up.trigger('FileUploaded', file, {
|
||||||
|
Reference in New Issue
Block a user