forked from GithubMirrors/cardconjurer
		
	Update main-1.js
This commit is contained in:
		| @@ -75,6 +75,9 @@ async function uploadFiles(filesRaw, destination, otherParams) { | |||||||
| 	files.forEach(file => { | 	files.forEach(file => { | ||||||
| 		var reader = new FileReader(); | 		var reader = new FileReader(); | ||||||
| 		reader.onloadend = function () { | 		reader.onloadend = function () { | ||||||
|  | 			if (otherParams.includes('filename')) { | ||||||
|  | 				otherParams = 'filename=' + file.name; | ||||||
|  | 			} | ||||||
| 			destination(reader.result, otherParams); | 			destination(reader.result, otherParams); | ||||||
| 		} | 		} | ||||||
| 		reader.onerror = function () { | 		reader.onerror = function () { | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Kyle
					Kyle