mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
begin rework of image editor
This commit is contained in:
parent
7ea4d0b4c9
commit
5bccc1840e
53 changed files with 965 additions and 787 deletions
10
dashboard-ui/cordova/fileupload.js
vendored
10
dashboard-ui/cordova/fileupload.js
vendored
|
@ -12,7 +12,13 @@
|
|||
|
||||
fileEntry.file(function (file) {
|
||||
|
||||
var mimeType = file.type;
|
||||
var mimeType = (file.type || '');
|
||||
|
||||
if (mimeType.indexOf('image/') != 0) {
|
||||
Logger.log('Skipping upload because file is not an image. path: ' + path + ' mimeType: ' + mimeType);
|
||||
deferred.reject();
|
||||
return;
|
||||
}
|
||||
|
||||
Logger.log('mimeType for file ' + path + ' is ' + file);
|
||||
|
||||
|
@ -37,7 +43,7 @@
|
|||
var params = {};
|
||||
options.params = params;
|
||||
|
||||
new FileTransfer().upload(file, url, onSuccess, onFail, options);
|
||||
new FileTransfer().upload(path, url, onSuccess, onFail, options);
|
||||
|
||||
}, function () {
|
||||
Logger.log('File upload failed. fileEntry.file returned an error');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue