You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Reason
Current starter example passing in the input from the form form.image which does not have 'length'
Solution
My personal solution was to follow the example more closely from the linked https://hub.nuxt.com/docs/storage/blob#useupload but even that didn't work out of the box.
Fix
await upload([...form.image.files])
Seems to do the trick
The text was updated successfully, but these errors were encountered:
Expected
To upload an image and see it persist as the code suggests it should
Experienced
useUpload.js thows 'Missing files'
Cause
This error thrown from useUpload.js when data.length is undefined.
Reason
Current starter example passing in the
input
from the formform.image
which does not have 'length'Solution
My personal solution was to follow the example more closely from the linked
https://hub.nuxt.com/docs/storage/blob#useupload
but even that didn't work out of the box.Fix
Seems to do the trick
The text was updated successfully, but these errors were encountered: