File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed
src/runtime/blob/app/composables Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -16,6 +16,12 @@ interface UploadOptions extends FetchOptions {
16
16
multiple ?: boolean
17
17
}
18
18
19
+ /**
20
+ * Upload a file or files to the server using FormData.
21
+ * @param apiBase the base URL of the API to handle the upload.
22
+ * @param options the options to use for the upload.
23
+ * @see https://hub.nuxt.com/docs/storage/blob#useupload
24
+ */
19
25
export function useUpload ( apiBase : string , options ?: UploadOptions & { multiple : false } ) : ( data : FileList | HTMLInputElement | File [ ] | File ) => Promise < BlobObject >
20
26
export function useUpload ( apiBase : string , options ?: UploadOptions ) : ( ( data : File ) => Promise < BlobObject > ) & ( ( data : FileList | HTMLInputElement | File [ ] ) => Promise < BlobObject [ ] > )
21
27
export function useUpload ( apiBase : string , options : UploadOptions = { } ) {
You can’t perform that action at this time.
0 commit comments