flamerest 1.0.42 → 1.0.43
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/REST.js +1 -1
- package/package.json +1 -1
package/REST.js
CHANGED
|
@@ -483,7 +483,7 @@ class FLAMEREST {
|
|
|
483
483
|
// Если в один из параметров передан FileList или input[type=file], т.е. нужно загрузить файлы
|
|
484
484
|
for (let val in values) {
|
|
485
485
|
// Преобразуем
|
|
486
|
-
if (values[val] instanceof Event && values[val].target instanceof HTMLInputElement) values[val] = values[val].target;
|
|
486
|
+
if (values[val] instanceof Event && values[val].target instanceof HTMLInputElement && values[val].target.type === 'file') values[val] = values[val].target.files;
|
|
487
487
|
if (values[val] instanceof HTMLInputElement && values[val].type === 'file') values[val] = values[val].files;
|
|
488
488
|
if (values[val] instanceof ClipboardEvent) values[val] = values[val].clipboardData.files;
|
|
489
489
|
if (values[val] instanceof DataTransfer) values[val] = values[val].files;
|