We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8b27277 commit 889acbcCopy full SHA for 889acbc
src/runtime/blob/app/composables/useUpload.ts
@@ -35,7 +35,7 @@ export function useUpload(apiBase: string, options: UploadOptions = {}) {
35
if (data instanceof File) {
36
files = [data]
37
}
38
- if (!data || !(data as Array<File>).length) {
+ if (!files || !(files as Array<File>).length) {
39
throw createError({ statusCode: 400, message: 'Missing files' })
40
41
0 commit comments