Skip to content

Commit bc0756f

Browse files
committed
add overwrite_tags parameter on upload
1 parent fb3ee1a commit bc0756f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/imagekitio/api_service/file.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ def initialize(req_obj)
1818
# Options types:
1919
# - `extensions` should be array of hash
2020
# eg: option['extension'] = [
21-
# { 'name' => 'remove-bg', 'options' => { 'add_shadow' => true } },
21+
# { 'name' => 'remove-bg', 'options' => { 'add_shadow' => 'true' } },
2222
# { 'name' => 'google-auto-tagging', 'minConfidence' => 80 }
2323
# ]
2424
# - `custom_metadata` should be hash

lib/imagekitio/constants/file.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ module File
55

66
VALID_FILE_DETAIL_OPTIONS = ["fileID"]
77

8-
VALID_UPLOAD_OPTIONS = %w[file file_name use_unique_file_name tags folder is_private_file custom_coordinates response_fields extensions webhook_url overwrite_file overwriteAI_tags overwrite_custom_metadata custom_metadata mime ]
8+
VALID_UPLOAD_OPTIONS = %w[file file_name use_unique_file_name tags folder is_private_file custom_coordinates response_fields extensions webhook_url overwrite_file overwrite_AI_tags overwrite_custom_metadata custom_metadata mime overwrite_tags ]
99
end
1010
end
1111
end

0 commit comments

Comments
 (0)