Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
A simple way to convert files to base64 strings, with multiple and extension based filter.
A simple way to convert files to base64 strings, with multiple and extension based filter.
npm i vue-file64
You can import this package as usual, here as an example the package is imported globally.
import FileDialog from 'vue-file64; Vue.component('file-dialog-64', FileDialog);
<file-dialog-64
:isInvalid="form.errors.errors.hasOwnProperty('image')"
:accept="''"
@output="
(file) => {
this.form.image = file;
}
"
:label="'Upload your files'"
>
<p slot="errorMessage" class="invalid-feedback d-block"> Image is required </p>
</file-dialog-64>
Prop Name | Type | Description |
---|---|---|
label | String | Used as common html label |
placeholder | String | Can be used to replace the default placeholder "Choose files", however this will be overridden when files are selected |
accept | String | Same as HTML accept, can be used to filter extensions, example :accept="'.jpg, .png'" |
multiple | Boolean | Enable ability to select multiple files |
isInvalid | Boolean | Activates the invalid class if set to true, highlights in red. |
Event | Description |
---|---|
output | Returns the base64 strings of the uploaded files. |
filecount | Returns the number of uploaded |
Slot Name | Description |
---|---|
errorMessage | Can be used to set your own error message. |
onComplete | Make use to show something when the upload is complete. Such as previewing the files. |
Feel free to contribute to this project, thanks
FAQs
A simple way to convert files to base64 strings, with multiple and extension based filter.
The npm package vue-file64 receives a total of 0 weekly downloads. As such, vue-file64 popularity was classified as not popular.
We found that vue-file64 demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.