lib/cloudinary/uploader.rb in cloudinary-1.0.73 vs lib/cloudinary/uploader.rb in cloudinary-1.0.74

- old
+ new

@@ -44,18 +44,22 @@ :folder=>options[:folder], :allowed_formats => Cloudinary::Utils.build_array(options[:allowed_formats]).join(","), :tags=>options[:tags] && Cloudinary::Utils.build_array(options[:tags]).join(","), :context => Cloudinary::Utils.encode_hash(options[:context]), :face_coordinates => Cloudinary::Utils.encode_double_array(options[:face_coordinates]), + :custom_coordinates => Cloudinary::Utils.encode_double_array(options[:custom_coordinates]), :moderation => options[:moderation], :raw_convert => options[:raw_convert], :ocr => options[:ocr], :categorization => options[:categorization], :detection => options[:detection], :similarity_search => options[:similarity_search], + :background_removal => options[:background_removal], :auto_tagging => options[:auto_tagging] && options[:auto_tagging].to_f, :upload_preset => options[:upload_preset], - :phash => Cloudinary::Utils.as_safe_bool(options[:phash])} + :phash => Cloudinary::Utils.as_safe_bool(options[:phash]), + :return_delete_token => Cloudinary::Utils.as_safe_bool(options[:return_delete_token]), + } params end def self.unsigned_upload(file, upload_preset, options={}) upload(file, options.merge(:unsigned => true, :upload_preset => upload_preset))