attachinary icon indicating copy to clipboard operation
attachinary copied to clipboard

Handling video files better

Open justinchen opened this issue 6 years ago • 0 comments

A couple suggestions for handling video files more appropriately.

  1. Store duration attribute in DB

  2. Pass resource_type when 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

justinchen avatar Jun 20 '19 17:06 justinchen