mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-22 02:55:41 +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) {
|
||||
file.status = plupload.FAILED;
|
||||
up.trigger('FileUploaded', file, {
|
||||
|
Reference in New Issue
Block a user