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