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
apiKey: "free"// <-- Get production-ready API keys from Upload.io
96
96
});
97
-
uploadOptions:UploaderOptions= {
97
+
options:UploadWidgetConfig= {
98
98
multi: false
99
99
};
100
-
uploadComplete= (files:UploaderResult[]) => {
101
-
console.log(files.map(x=>x.fileUrl));
100
+
onComplete= (files:UploadWidgetResult[]) => {
101
+
alert(files.map(x=>x.fileUrl).join("\n"));
102
102
};
103
103
}
104
104
```
@@ -150,20 +150,20 @@ The `uploadButton` directive displays a file upload modal on click.
150
150
Inputs:
151
151
152
152
-`uploader` (required): an instance of the [`Uploader` class](https://github.com/upload-io/uploader/blob/main/lib/src/Uploader.tsx).
153
-
-`uploadOptions` (optional): an object following the [`UploaderOptions` interface](https://github.com/upload-io/uploader/blob/main/lib/src/UploaderOptions.ts).
153
+
-`uploadOptions` (optional): an object following the [`UploadWidgetConfig` interface](https://github.com/upload-io/uploader/blob/main/lib/src/UploadWidgetConfig.ts).
154
154
-`uploadComplete` (optional): a callback containing a single parameter — an array of uploaded files.
@@ -188,15 +188,15 @@ The `upload-dropzone` component renders an inline drag-and-drop file uploader.
188
188
Inputs:
189
189
190
190
-`uploader` (required): an instance of the [`Uploader` class](https://github.com/upload-io/uploader/blob/main/lib/src/Uploader.tsx).
191
-
-`options` (optional): an object following the [`UploaderOptions` interface](https://github.com/upload-io/uploader/blob/main/lib/src/UploaderOptions.ts).
191
+
-`options` (optional): an object following the [`UploadWidgetConfig` interface](https://github.com/upload-io/uploader/blob/main/lib/src/UploadWidgetConfig.ts).
192
192
-`onComplete` (optional): a callback containing the array of uploaded files as its parameter.
193
193
-`onUpdate` (optional): same as above, but called after every file upload or removal.
0 commit comments