Fixed file upload types
All checks were successful
Build / Build NPM Project (push) Successful in 16s
Build / Tag Version (push) Successful in 4s
Build / Publish (push) Successful in 7s

This commit is contained in:
Zakary Timson 2024-04-24 07:06:17 -04:00
parent 7cd717fc7d
commit 0985ff145e
2 changed files with 2 additions and 2 deletions

View File

@ -1,6 +1,6 @@
{
"name": "@ztimson/utils",
"version": "0.8.1",
"version": "0.8.2",
"description": "Utility library",
"author": "Zak Timson",
"license": "MIT",

View File

@ -6,7 +6,7 @@ export type UploadEvents = TypedEvents & {
progress: (progress: number) => any;
}
export function uploadProgress(files : File | FileList, url: string) {
export function uploadProgress(files : File | File[], url: string) {
const xhr = new XMLHttpRequest();
const progress = new TypedEmitter<UploadEvents>();
const formData = new FormData();