Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

using onDrop function stops the s3 upload process #59

Open
asela-wijesinghe opened this issue May 16, 2018 · 3 comments
Open

using onDrop function stops the s3 upload process #59

asela-wijesinghe opened this issue May 16, 2018 · 3 comments

Comments

@asela-wijesinghe
Copy link

asela-wijesinghe commented May 16, 2018

I tried using the onDrop function and get a set of uploading file objetcs in a table layout but after using it the progress of uploading never starts

<DropzoneS3Uploader upload={uploadOptions} onFinish={handleUploads} onProgress={e => console.log(e)} onDrop={e => console.log(e)} accept="video/*" s3Url={s3Url} > <UploadDisplay /> </DropzoneS3Uploader>

this is an unusual case since this is a direct function to work with but I experience it has an issue for sure and to see the outputs I will upload the 2 scenarios

Without using onDrop
image

using onDrop
image

any clues to sort this out?

@mihaiserban
Copy link

did you manage to fix this? I've also encountered this.
Looked over the source code and can't figure why :|

@mihaiserban
Copy link

actually check this pull request #58

@mihaiserban
Copy link

mihaiserban commented Jun 14, 2018

    onDrop = (files, rejectedFiles) => {
      console.log(files)
      console.log(rejectedFiles)
    }

   <DropzoneS3Uploader
     s3Url={s3Url}
     maxSize={1024 * 1024 * 5}
     upload={uploadOptions}
     onDrop={this.onDrop}
     notDropzoneProps={['onFinish', 's3Url', 'filename', 'host', 'upload', 'isImage', 'notDropzoneProps', 'onDrop']}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants