Skip to content

Event "vdropzone-error" does not seem to fire with AWS #506

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

Open
g-traub opened this issue Nov 6, 2019 · 2 comments · May be fixed by #549
Open

Event "vdropzone-error" does not seem to fire with AWS #506

g-traub opened this issue Nov 6, 2019 · 2 comments · May be fixed by #549

Comments

@g-traub
Copy link

g-traub commented Nov 6, 2019

Hi, I'm using v-dropzone in a project and for error handling I need to use "vdropzone-error" event, but it doesn't fire.
I tried replicating the problem : https://codesandbox.io/s/vdropzone-error-event-not-firing-lrx66?fontsize=14

  <div id="app">
    <img width="25%" src="./assets/logo.png">
    <Dropzone
      id="dropzone"
      :options="dropzoneOptions"
      :awss3="awss3"
      @vdropzone-s3-upload-error="error"
      @vdropzone-error="error"
    />
  </div>
</template>

<script>
import Dropzone from "vue2-dropzone";
import "vue2-dropzone/dist/vue2Dropzone.min.css";

export default {
  name: "App",
  components: {
    Dropzone
  },
  data() {
    return {
      dropzoneOptions: {
        paramName: "file",
        maxFilesize: 2
      },
      awss3: {
        // the bad url is what triggers the error
        signingURL: `url`,
        params: {},
        withCredentials: false,
        sendFileToServer: false
      }
    };
  },
  methods: {
    error() {
      console.log("error");
    }
  }
};
</script>

I get an error in the console :
Capture d’écran de 2019-11-06 16-07-18
But it doesn't fire the event

@rowanwins
Copy link
Owner

The current implementation of S3 support doesn't make best use of the dropzone events so I'm currently reworking it, hopefully we'll have some progress in #549

@rowanwins rowanwins added this to the v3.7 milestone May 9, 2020
@rowanwins rowanwins linked a pull request May 9, 2020 that will close this issue
8 tasks
@rowanwins rowanwins changed the title Event "vdropzone-error" does not seem to fire Event "vdropzone-error" does not seem to fire with AWS May 9, 2020
@buiminhtri318
Copy link

Thanks for you hard working guys. What is current status of this issue? I am using 3.6.0 and facing same problem.

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

Successfully merging a pull request may close this issue.

3 participants