'Use dropzone.js to create and upload thumbnails as well as original files
I am trying to use dropzone.js to automatically create and upload the thumbnails as well as the original files. I am currently creating the thumbnails using PHP but they resize slightly odd. The code I am using also requires another button to be clicked. I would like it to automatically generate thumbs. I make the new upload directory using a session and PHP. I can add this code but it does not really help with my problem.
I am not asking anyone to do this, simply is this possible within its current features or is it something that needs adding?
I have found this but it seems to be for one file and needs to be looped with name? Am I missing something? Thanks
myDropzone.emit("addedfile", mockFile);
myDropzone.createThumbnailFromUrl(mockFile, '/your-image.jpg');
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
