-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #7 from imagekit-developer/dev
IMAGEKIT-717: Batch upload
- Loading branch information
Showing
3 changed files
with
38 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -85,6 +85,31 @@ const uppy = Uppy({ debug: true, autoProceed: false }) | |
] | ||
}) | ||
``` | ||
# Enable batch upload | ||
|
||
You can use the `limit` parameter to enable batch processing and set the batch size for upload. By default, all upload requests are sent simultaneously. | ||
|
||
In the following example, the selected files would be uploaded in batches, with each batch having a maximum of 10 files. | ||
|
||
``` javascript | ||
import Uppy from '@uppy/core' | ||
import '@uppy/core/dist/style.css' | ||
import '@uppy/dashboard/dist/style.css' | ||
import Dashboard from '@uppy/dashboard' | ||
import ImageKitUppyPlugin from "imagekit-uppy-plugin" | ||
|
||
const uppy = Uppy({ debug: true, autoProceed: false }) | ||
.use(Dashboard, { | ||
inline: true, | ||
trigger: '#uppyDashboard', // your element | ||
}) | ||
.use(ImageKitUppyPlugin, { | ||
id: 'ImageKit', | ||
authenticationEndpoint: `http://www.yourserver.com/auth`, | ||
publicKey: "your_public_key", | ||
limit: 10 | ||
}) | ||
``` | ||
|
||
# Support | ||
If something doesn't work as expected, please reach out to us at [email protected] or create an issue in this repo. Please try to include a reproducible code sample. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters