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

file.external_copy does not work with stripped operations #67

Closed joalro closed 2 years ago

joalro commented 3 years ago

When using file.external_copy('Project-Images', {strip_operations: true}), it should be creating an uncropped version of the image saved to my bucket. However, it is not stripping operations.

As an attempt to work around this, I have made a new, uncropped version of the file and attempted to upload that. It is STILL returning a cropped version. i.e

uncropped_file = @api.file @file.cdn_url_without_operations
copied_file = uncropped_file.external_copy('Project-Images', {})

The copied file is still coming in with the operations attached. This was not happening until yesterday.

I have been outputting the URLs at every point. I have confirmed that uncropped_file is uncropped, but copied_file is not. Since I have turned off storing files, the cdn_url will not be active beyond today, so posting that here will not be useful.

rsedykh commented 2 years ago

Hi. We've updated the library. Should work. (We have remote_copy instead of external_copy right now).