Skip to content

Commit 889acbc

Browse files
committed
fix(blob): check correct variable in useUpload
1 parent 8b27277 commit 889acbc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/runtime/blob/app/composables/useUpload.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ export function useUpload(apiBase: string, options: UploadOptions = {}) {
3535
if (data instanceof File) {
3636
files = [data]
3737
}
38-
if (!data || !(data as Array<File>).length) {
38+
if (!files || !(files as Array<File>).length) {
3939
throw createError({ statusCode: 400, message: 'Missing files' })
4040
}
4141

0 commit comments

Comments
 (0)