Skip to content

Handling video files better #161

Description

@justinchen

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions