1
0
Fork 0
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:
Luke Pulverenti 2015-09-17 12:04:04 -04:00
parent 7ea4d0b4c9
commit 5bccc1840e
53 changed files with 965 additions and 787 deletions

View file

@ -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');