Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@thunderbite/vue-vapor-upload-component

Thunderbite6MIT1.0.0

Vue upload component for use with Laravel Vapor

readme

vue-vapor-upload-component

Installation

npm install vue-vapor-upload-component

import VueVaporUploadComponent from 'vue-vapor-upload-component'

Usage

<vue-vapor-upload-component
    accept=".csv"
    endpoint="/backstage/players"
    name="players-input"
    :reload-after-upload="true"
></vue-vapor-upload-component>

Options

Property Description Type Default Required
accept List of accepted file types string empty no
endpoint URL where Vapor response will be posted to string empty yes
name Unique name for file input string empty yes
reload-after-upload Reload page after processing string empty yes
upload-success-message Message which will be sent with page reload string The upload was succcessful no