Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More โ†’
Socket
Sign inDemoInstall
Socket

@bytescale/upload-widget-vue

Package Overview
Dependencies
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@bytescale/upload-widget-vue - npm Package Compare versions

Comparing version 4.4.0 to 4.4.1

2

package.json
{
"name": "@bytescale/upload-widget-vue",
"version": "4.4.0",
"version": "4.4.1",
"author": "Bytescale <hello@bytescale.com> (https://www.bytescale.com)",

@@ -5,0 +5,0 @@ "description": "Vue File Upload UI Widget โ€” Lightweight & supports: drag and drop, multiple uploads, image cropping, customization & more ๐Ÿš€ Comes with Cloud Storage ๐ŸŒ",

@@ -135,3 +135,3 @@ <h1 align="center">

<UploadDropzone :options="options"
:on-update="onFileUploaded"
:on-update="onFilesUploaded"
width="600px"

@@ -143,3 +143,3 @@ height="375px" />

import { UploadDropzone } from "@bytescale/upload-widget-vue";
import type { UploadWidgetConfig, UploadWidgetResult } from "@bytescale/upload-widget";
import type { UploadWidgetConfig, UploadWidgetOnUpdateEvent } from "@bytescale/upload-widget";

@@ -164,7 +164,7 @@ // Full Configuration:

methods: {
onFileUploaded(files: UploadWidgetResult[]) {
if (files.length === 0) {
onFilesUploaded(event: UploadWidgetOnUpdateEvent) {
if (event.uploadedFiles.length === 0) {
alert("No files selected.");
} else {
alert(files.map(f => f.fileUrl).join("\n"));
alert(event.uploadedFiles.map(f => f.fileUrl).join("\n"));
}

@@ -228,3 +228,6 @@ }

}) => {}, // object to the method's first parameter.
onUpdate: files => {}, // Called each time the list of uploaded files change.
onUpdate: (event) => { // Called each time the Upload Widget's list of files change.
// event.pendingFiles // Array of files that are either uploading or queued.
// event.uploadedFiles // Array of files that have been uploaded and not removed.
},
onPreUpload: async file => ({

@@ -231,0 +234,0 @@ errorMessage: "Uh oh!", // Displays this validation error to the user (if set).

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with โšก๏ธ by Socket Inc