flamerest 1.0.26 → 1.0.27
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 +2 -0
- package/package.json +1 -1
package/REST.js
CHANGED
|
@@ -455,6 +455,8 @@ class FLAMEREST {
|
|
|
455
455
|
for (let val in values) {
|
|
456
456
|
// Преобразуем
|
|
457
457
|
if (values[val] instanceof HTMLInputElement && values[val].type === 'file') values[val] = values[val].files;
|
|
458
|
+
if (values[val] instanceof ClipboardEvent) values[val] = values[val].clipboardData.files;
|
|
459
|
+
if (values[val] instanceof DataTransfer) values[val] = values[val].files;
|
|
458
460
|
if (values[val] instanceof FileList) {
|
|
459
461
|
let newValues = [];
|
|
460
462
|
values[val] = Array.from(values[val]);
|