diff options
author | Daniel Calviño Sánchez <danxuliu@gmail.com> | 2022-07-24 22:22:28 +0200 |
---|---|---|
committer | Daniel Calviño Sánchez <danxuliu@gmail.com> | 2022-07-24 22:22:28 +0200 |
commit | 393c89142179454d731931e85399685237f2a1bc (patch) | |
tree | 03406688a0212034834ea43f554b3c1f42d2147f /apps/files_sharing/tests/js/publicAppSpec.js | |
parent | 051518cd63cdbb9ff0a47deaacea65f6a0df0b06 (diff) | |
download | nextcloud-server-393c89142179454d731931e85399685237f2a1bc.tar.gz nextcloud-server-393c89142179454d731931e85399685237f2a1bc.zip |
Fix handling of internal errors when uploading theming files
When a file can not be uploaded in the Theming app due to an expected
error (like an invalid mime type) the response contains a "data.message"
field. However, if the upload fails due to an unexpected error (like an
internal error, for example if the "mime_content_type" function is
disabled) there is no such field, so it should not be used.
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
Diffstat (limited to 'apps/files_sharing/tests/js/publicAppSpec.js')
0 files changed, 0 insertions, 0 deletions