]> source.dussan.org Git - nextcloud-server.git/commit
Fix handling of internal errors when uploading theming files 33799/head
authorDaniel Calviño Sánchez <danxuliu@gmail.com>
Sun, 24 Jul 2022 20:22:28 +0000 (22:22 +0200)
committerbackportbot-nextcloud[bot] <backportbot-nextcloud[bot]@users.noreply.github.com>
Thu, 1 Sep 2022 15:56:56 +0000 (15:56 +0000)
commit46d5ece3a6a4ef058df88018928c804caed2d9d4
tree9a0e57c7df664fa13ac53b76ee00735e86cd8480
parent7f02be6010626cb36f9bbd3b25e89010133292c4
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>
apps/theming/js/settings-admin.js