vue-dropbox-picker

Installation `yarn add vue-dropbox-picker` or `npm install vue-dropbox-picker --save`
789
Install
npm install vue-dropbox-picker
Latest Version:0.1.1
Vue:2
License:MIT
Last Updated:May 28, 2019
Links: npm
Maintainer: xoxmaman

vue-dropbox-picker

Installation

yarn add vue-dropbox-picker or npm install vue-dropbox-picker --save

##Usage

<VueDropboxPicker
        :api-key="dropboxApiKey"
        link-type="direct"
        :multiselect="false"
        :extensions="['.mp4']"
        :folderselect="false"
        :sizeLimit="1024"
        @cancel="onCancel"
        @picked="onPicked">
    Open Dropbox Picker
</VueDropboxPicker>
onCancel = () => {
  console.log('onCancel')
}

onPicked = (files) => {
  files.forEach((file) => {
      console.log(file)
  })
}
/*
{
    // Unique ID for the file, compatible with Dropbox API v2.
    id: "id:...",

    // Name of the file.
    name: "filename.txt",

    // URL to access the file, which varies depending on the linkType specified when the
    // Chooser was triggered.
    link: "https://...",

    // Size of the file in bytes.
    bytes: 464,

    // URL to a 64x64px icon for the file based on the file's extension.
    icon: "https://...",

    // A thumbnail URL generated when the user selects images and videos.
    // If the user didn't select an image or video, no thumbnail will be included.
    thumbnailLink: "https://...?bounding_box=75&mode=fit",

    // Boolean, whether or not the file is actually a directory
    isDir: false,
}
 */

Props

link-type - direct or preview. Default is preview. Type of returning URLs to chosen files
multiselect - Boolean. Possibility to choose several files
extensions - List of allowed extensions. Empty by default (allowed all files).
folderselect - Boolean. Possibility to choose folders sizeLimit - Max size of files. If unset - no limit

Events

cancel - When picker is closed. No arguments
picked - When files are chosen. Argument - files (Array of file objects)

For more info - https://www.dropbox.com/developers/chooser

Related Packages

vue-gpicker

Vue Google Picker

3,825 7
vue-3-better-picker

Mobile picker component for Vue 3

68,823 0
@v-c/picker

picker ui component for vue

57,185 32
@enso-ui/files

File browser and file type administration pages for Enso UI

14,675 0
vuemoji-picker

Vue 2 and 3 lightweight emoji picker.

124,448 72

Version History

Version Released Vue License
0.1.1 ^2.6.10 MIT
0.1.0 ^2.6.10 MIT