Gathering detailed insights and metrics for imagekit-uppy-plugin
Gathering detailed insights and metrics for imagekit-uppy-plugin
Gathering detailed insights and metrics for imagekit-uppy-plugin
Gathering detailed insights and metrics for imagekit-uppy-plugin
npm install imagekit-uppy-plugin
Typescript
Module System
Node Version
NPM Version
JavaScript (100%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
4 Stars
40 Commits
8 Forks
4 Watchers
3 Branches
7 Contributors
Updated on Sep 14, 2023
Latest Version
2.0.1-alpha.2
Package Id
imagekit-uppy-plugin@2.0.1-alpha.2
Unpacked Size
61.46 kB
Size
7.62 kB
File Count
6
NPM Version
6.14.13
Node Version
14.17.1
Published on
Aug 27, 2024
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
A plugin for Uppy, which allows you to upload files directly to ImageKit.io media library.
You can see a hosted demo of using this plugin in a real project here or fork sample project codesandbox.io.
The plugin is published on npm. First, you need to install it using npm or yarn.
yarn add imagekit-uppy-plugin
npm install imagekit-uppy-plugin --save
Then include it in your application with mandatory parameters i.e. id
, authenticationEndpoint
and publicKey
.
1import Uppy from '@uppy/core' 2import '@uppy/core/dist/style.css' 3import '@uppy/dashboard/dist/style.css' 4import Dashboard from '@uppy/dashboard' 5import ImageKitUppyPlugin from "imagekit-uppy-plugin" 6 7const uppy = Uppy({ debug: true, autoProceed: false }) 8 .use(Dashboard, { 9 inline: true, 10 trigger: '#uppyDashboard', // your element 11 }) 12 .use(ImageKitUppyPlugin, { 13 id: 'ImageKit', 14 authenticationEndpoint: `http://www.yourserver.com/auth`, 15 publicKey: "your_public_key" 16 })
The plugin makes an HTTP GET request to authenticationEndpoint
and expects a JSON response with three fields i.e. signature
, token
and expire
. In addition, the plugin adds a query parameter t with a random value to ensure that the request URL is unique and the response is not cached in Safari iOS. Your backend can ignore this query parameter.
Learn how to implement authenticationEndpoint on your server using ImageKit.io server-side SDKs.
By default, this plugin will send all properties of file meta object as string values with the upload requests. You can control which properties to send as part of the upload request using metaFields field while initializing the ImageKit Uppy plugin. Ideally, you should only allow the supported upload request parameters to avoid any surprises.
1const uppy = Uppy({ debug: true, autoProceed: false }) 2 .use(Dashboard, { 3 inline: true, 4 trigger: '#uppyDashboard', // your element 5 metaFields : [ 6 { 7 id: 'name', name: 'File name', placeholder: 'Enter the file name' 8 }, 9 { 10 id: 'folder', name: 'Folder path', placeholder: 'The destination path e.g. /website-assets' 11 } 12 ] 13 }) 14 .use(ImageKitUppyPlugin, { 15 id: 'ImageKit', 16 authenticationEndpoint: `http://www.yourserver.com/auth`, 17 publicKey: "your_public_key" 18 metaFields: [ 19 "useUniqueFileName", 20 "tags", 21 "folder", 22 "isPrivateFile", 23 "customCoordinates", 24 "responseFields" 25 ] 26 })
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.
1import Uppy from '@uppy/core' 2import '@uppy/core/dist/style.css' 3import '@uppy/dashboard/dist/style.css' 4import Dashboard from '@uppy/dashboard' 5import ImageKitUppyPlugin from "imagekit-uppy-plugin" 6 7const uppy = Uppy({ debug: true, autoProceed: false }) 8 .use(Dashboard, { 9 inline: true, 10 trigger: '#uppyDashboard', // your element 11 }) 12 .use(ImageKitUppyPlugin, { 13 id: 'ImageKit', 14 authenticationEndpoint: `http://www.yourserver.com/auth`, 15 publicKey: "your_public_key", 16 limit: 10 17 })
If something doesn't work as expected, please reach out to us at support@imagekit.io or create an issue in this repo. Please try to include a reproducible code sample.
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
Found 6/11 approved changesets -- score normalized to 5
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
17 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-07-07
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More