attachinary
attachinary copied to clipboard
Handling video files better
A couple suggestions for handling video files more appropriately.
-
Store
durationattribute in DB -
Pass
resource_typewhen making API calls (otherwise it errors with resource not found).
module Attachinary
def destroy_file
Cloudinary::Uploader.destroy(public_id, {resource_type: resource_type}) if public_id && !keep_remote?
end
end
end