Files should be an empty array by default
This commit is contained in:
parent
9cf25a6666
commit
9c1ee77a20
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@tp/helpers",
|
"name": "@tp/helpers",
|
||||||
"version": "2.3.1",
|
"version": "2.3.2",
|
||||||
"description": "",
|
"description": "",
|
||||||
"main": "closest.js",
|
"main": "closest.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
@ -8,7 +8,7 @@ export const upload = function(superClass) {
|
|||||||
* @param {Object} opts Upload options
|
* @param {Object} opts Upload options
|
||||||
* @returns Promise
|
* @returns Promise
|
||||||
*/
|
*/
|
||||||
uploadFiles(url, files, data = {}) {
|
uploadFiles(url, files = [], data = {}) {
|
||||||
return new Promise((resolve, reject) => {
|
return new Promise((resolve, reject) => {
|
||||||
const request = new XMLHttpRequest();
|
const request = new XMLHttpRequest();
|
||||||
const formData = new FormData();
|
const formData = new FormData();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user