Open
Description
I'm following the example for S3 direct upload, and I've also specified acceptedFiles
in the dropzoneOptions config object. I can see the uploaded file shown as an error, however it actually was still uploaded successfully on to my S3 bucket. Here's my code:
// Component
<vue-dropzone
ref="myVueDropzone"
id="dropzone"
:awss3="awss3"
:options="dropzoneOptions"
@vdropzone-error="dropzoneError"
v-on:vdropzone-s3-upload-error="s3UploadError"
v-on:vdropzone-s3-upload-success="s3UploadSuccess"></vue-dropzone>
// Dropzone config object
dropzoneOptions: {
url: 'https://httpbin.org/post',
thumbnailWidth: 150,
maxFilesize: 0.5,
acceptedFiles: 'image/png'
}
// Event handlers
s3UploadError(errorMessage) {
console.error('error: ', errorMessage);
},
s3UploadSuccess(s3ObjectLocation) {
console.log('success: ', s3ObjectLocation);
},