Commit 17774c3f authored by Fabian-Andree Heidemann's avatar Fabian-Andree Heidemann
Browse files

[file] upload: HTML5 does not deliver possibility to distinguish files from...

[file] upload: HTML5 does not deliver possibility to distinguish files from folder. Thus, for unknown MIME type, ask the user
parent afdaccf6
......@@ -467,8 +467,13 @@ define(["jquery", "jclass", "text!../../html/openDialog.html", "text!../../html/
add: function (event, data) {
var file = data.files[0];
if (file.type === "") {
self.FileBase.instance.alert("Unknown filetype of file \"" + file.name + "\". If it is \
a folder, store it into an archive before uploading.");
self.FileBase.instance.confirm(
"The type of file \"" + file.name + "\" is unknown or it is a folder. Latter can not \
be uploaded and must be stored into an archive firstly. Do you want to try it anyways?",
function (confirmed) {
if (confirmed) data.submit();
}
);
} else {
data.submit();
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment