bigfork / silverstripe-dropzone

Dropzone.js field for SilverStripe
BSD 3-Clause "New" or "Revised" License
3 stars 3 forks source link

Existing images don't have thumbnails generated #19

Open mak001 opened 4 years ago

mak001 commented 4 years ago

Some potential issues with auto-generating thumbnails with dropzone.js:

can be done by adding dropzone.emit('thumbnail', mockFile, fileURL); // generates thumbnail with the rest of the emits when adding an existing file.

Could possibly have a canView() and image type check in the template when passing the image url to be used as the thumbnail base.