Security News
cURL Project and Go Security Teams Reject CVSS as Broken
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
A package with components for file uploads.
yarn add uploods
If you want to use "upload on drop", also install firebase.
yarn add firebase
You need two things: An api key and a bucket link.
Go to https://console.firebase.google.com/
apiKey
to use in your env vars. You can disregard the rest if you're using only storage....
<script>
// Your web app's Firebase configuration
var firebaseConfig = {
apiKey: "api-key",
...
};
// Initialize Firebase
firebase.initializeApp(firebaseConfig);
</script>
us-east-1
. That one is included in the Spark plan, the free one.https://console.firebase.google.com/u/0/project/<your-project>/storage/<your-bucket>/files
Files
tab, copy the bucket link: gs://<your-bucket-id>.appspot.com
. Use that link to identify your bucket.Rules
tab and edit the rules to enable read, write to all.rules_version = '2';
service firebase.storage {
match /b/{bucket}/o {
match /{allPaths=**} {
allow read, write;
}
}
}
Property | Type | Required | Default |
---|---|---|---|
onChange | Func | ✔ | - |
containerStyle | Object | - | |
inputStyle | Object | - | |
hideList | Bool | false | |
accept | Array | ['*'] | |
maxSize | Int | 10 000 kb | |
maxDimension | Int | ||
overwrite | Bool | ||
quality | Int | ||
prefix | String | ||
paperProps | { evelation:0 } | ||
config | |||
text | String | 'Drag some files here or click to select files' | |
dragActiveText | String | 'Drop here!' | |
unsupportedText | String | 'Unsupported File...' | |
showRemoveIcon | Bool | true |
A function to be called every time files are included or removed from the list. It receives an array with all the files, each one represented by an object with the following properties:
{
name: <STRING> 'filename',
parsed: <STRING> 'base64 string representation of file',
size: <INT> size in bytes,
type: <STRING> 'file MIME type',
}
ex: files => console.log('Uploaded files: ',files)
An object containing the style to be applied to component's container, an MUI's Paper.
An object containing the style to be applied to the input.
If true, will hide the list of files.
An array containg MIME file types accepted. Supports wildcards like image/*
Maximum size accepted for each file, measured in KB.
Elevation prop passed to the container, an MUI's Paper
Text shown in the input while waiting for files.
Text shown when user is dragging files over the component.
Text shown when a file is rejected (either by file type or size).
To run the project, after cloning, install the dependencies both for the lib and for its the example. Then, run both in separate terminals.
yarn
yarn start
Then on another terminal,
cd example
yarn start
The example will use your dev package and your changes will be reflected on it.
Update the Github pages docs:
yarn deploy
Create a new npm release:
yarn release major|minor|patch
yarn postrelease
FAQs
Uploods React component
We found that uploods demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 5 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.
Security News
Biden's executive order pushes for AI-driven cybersecurity, software supply chain transparency, and stronger protections for federal and open source systems.