uploadcare / uploadcare-ruby

Ruby API client that handles uploads and further operations with files by wrapping Uploadcare Upload and REST APIs.
https://uploadcare.com
MIT License
39 stars 28 forks source link

Allow to upload `Tempfile`s and files without a mime type #59

Closed vizvamitra closed 6 years ago

vizvamitra commented 6 years ago

Two issues are being fixed here:

  1. Client didn't support passing Tempfile objects to Uploadcare::Api#upload method (#56). It'll be also possible to pass ActionDispatch::Http::UploadedFile objects (which is the class for file params in Rails) though the class itself isn't referenced directly in this PR
  2. Client didn't support uploading of files with unknown mime-types. Now it is possible.
coveralls commented 6 years ago

Coverage Status

Coverage decreased (-0.5%) to 99.507% when pulling b6da8aa78102b38788c568828ca50fc9f6498ac7 on vizvamitra:bugfix/allow_to_upload_tempfiles into e02b825787c95c7fa975dffd33dcba8e8b085178 on uploadcare:master.