Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handling video files better #161

Open
justinchen opened this issue Jun 20, 2019 · 0 comments
Open

Handling video files better #161

justinchen opened this issue Jun 20, 2019 · 0 comments

Comments

@justinchen
Copy link

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant