mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-10 13:28:55 +00:00
[ticket/11915] Check if trigger_error() was called after sending chunk.
PHPBB3-11915
This commit is contained in:
parent
a70f08513d
commit
8b351104ed
1 changed files with 5 additions and 0 deletions
|
@ -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, {
|
||||||
|
|
Loading…
Add table
Reference in a new issue