attachinary
attachinary copied to clipboard
After uploading a video the thumbnail is missing
When using the form field <%= f.attachinary_file_field :video %> the resulting thumbnail after uploading a video is missing as the link is:
<img src="http://res.cloudinary.com/dfqe5altz/image/upload/c_fill,h_75,w_75/v1431079893/mnszzru8r56gdqxjwmbp.jpg" alt="" width="75" height="75">
But cloudinary now locates the thumbnail in the video directory, so the thumbnail should be:
<img src="http://res.cloudinary.com/dfqe5altz/video/upload/c_fill,h_75,w_75/v1431079893/mnszzru8r56gdqxjwmbp.jpg" alt="" width="75" height="75">
@steveholmes can you update your description?, the urls looks the same to me
UPDATE, sorry I just saw the difference, I'll take a look at this hopefully tonight.
Submitted PR that adds resource_type to $cloudinary.url call so that the correct url is returned for video thumbnails.
https://github.com/assembler/attachinary/pull/121