Etheryte / vue-auto-dropzone

A Dropzone component for Vue. Typescript support, native slots, and more.
MIT License
22 stars 1 forks source link

"No URL Provided". This shouldn't be an error. #7

Open marbuser opened 4 years ago

marbuser commented 4 years ago

Describe the bug So I'm getting an error of "No URL Provided" because I'm not providing one, and the official Dropzone docs state you don't need to provide one IF your dropzone is within a form (which mine is.)

I basically intend to allow a user to drag and drop an image into the dropzone (but not upload it), and only once they fill out the whole form and click submit, does it send the files in the request along with all the other stuff.

I also was getting a "custom validator" fail for options but I think this is related to the url error.

Reproduction Don't provide a URL in options object.

stale[bot] commented 4 years ago

This discussion has been marked as stale because it has not had recent activity. It will be closed if no further activity occurs. If this issue is still relevant, please comment explaining why. Thanks!

Etheryte commented 4 years ago

Will be fixed in the upcoming release, 0.2.0. Should hit NPM later today.

wrainbird commented 4 years ago

I'm also getting this error.

matthewtrask commented 4 years ago

this is still an issue. Fortunately, the setOption seems to let me get around it.

Etheryte commented 4 years ago

Seems to stem from disabling the autoDiscover flag, enabling it outright isn't possible if we want to correctly intercept instance creation to bind events etc. Needs investigation.