Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
createThumbnailFromUrl not working #1628
I'm using the following code as described on the website FAQs in order to auto populate the dropzone with thumbnails of existing images:
The webpage is hosted at http://localhost:3000/page
So I added a dataURL parameter (equal to "/public/logo.png") to mockFile and now the network traffic appears to be fetching the correct image, but it is not showing up on the thumbnail element (it is just a blank thumbnail that shows the name and size).
Any ideas as to what is happening?
After reading this, I found out what you have to do. They need to create a matching method and/or update the docs.
dz is your Dropzone object. The key is to have dataURL set on your file.
@kleinkauff You must add a parameter for crossOrigin, example given below: