|
|
|
@ -5483,7 +5483,6 @@ class FileManager {
|
|
|
|
|
], path[6], {
|
|
|
|
|
type: blob.type
|
|
|
|
|
});
|
|
|
|
|
console.log('FRESH FILE', fresh);
|
|
|
|
|
this.files.push(fresh);
|
|
|
|
|
if (this.files.length <= count - 1) this.reindexFiles(sortOrder, ++step);
|
|
|
|
|
else notify.alert('FILES READY TO UPLOAD', true);
|
|
|
|
@ -5511,7 +5510,7 @@ class FileManager {
|
|
|
|
|
image.title = escape(theFile.name);
|
|
|
|
|
var span = document.createElement('div');
|
|
|
|
|
span.style.background = 'url(' + f.target.result + ') no-repeat center center / cover';
|
|
|
|
|
span.className = 'img-item'; //span.setAttribute('data-source', theFile.name);
|
|
|
|
|
span.className = 'img-item';
|
|
|
|
|
image.setAttribute('id', i);
|
|
|
|
|
self.storage.push([
|
|
|
|
|
{
|
|
|
|
@ -5568,13 +5567,11 @@ class FileManager {
|
|
|
|
|
break;
|
|
|
|
|
case 'change':
|
|
|
|
|
case 'drop':
|
|
|
|
|
e.type == 'drop' ? rawList = e.dataTransfer.files : rawList = e.target.files; //this.sortFiles(freshList);
|
|
|
|
|
for(var i = 0, f; f = rawList[i]; i++){
|
|
|
|
|
// check witch files are cool to upload
|
|
|
|
|
console.log('TYPE', f.type);
|
|
|
|
|
e.type == 'drop' ? rawList = e.dataTransfer.files : rawList = e.target.files;
|
|
|
|
|
for(var i = 0, f; f = rawList[i]; i++)// check witch files are cool to upload
|
|
|
|
|
if (this.accetableFiles.includes(f.type)) sortedList.push(f);
|
|
|
|
|
else notOnTheList.push(f);
|
|
|
|
|
} //send for sorting
|
|
|
|
|
//send for sorting
|
|
|
|
|
self.sortFiles(sortedList);
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|