Skip to content

Commit eb5e5c0

Browse files
ANKUR DWIVEDIANKUR DWIVEDI
ANKUR DWIVEDI
authored and
ANKUR DWIVEDI
committed
updated parameter
1 parent 4a71cda commit eb5e5c0

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -423,7 +423,7 @@ options = UploadFileRequestOptions(
423423
custom_metadata={'testss': 12},
424424
transformation=transformation,
425425
checks="'request.folder' : '/testing-python-folder'", # To run server side checks before uploading files. Notice the quotes around request.folder and /testing-python-folder.
426-
isPublished=True
426+
is_published=True
427427
)
428428

429429
result = imagekit.upload_file(file='<url|base_64|binary>', # required

imagekitio/constants/files.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,5 +31,5 @@
3131
"embedded_metadata",
3232
"transformation",
3333
"checks",
34-
"isPublished",
34+
"is_published",
3535
]

imagekitio/models/UploadFileRequestOptions.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ def __init__(
2020
custom_metadata: json = None,
2121
transformation: json = None,
2222
checks: str = None,
23-
isPublished: bool = None,
23+
is_published: bool = None,
2424
):
2525
if use_unique_file_name is not None:
2626
self.use_unique_file_name = use_unique_file_name
@@ -52,5 +52,5 @@ def __init__(
5252
self.transformation = transformation
5353
if checks is not None:
5454
self.checks = checks
55-
if isPublished is not None:
56-
self.isPublished = isPublished
55+
if is_published is not None:
56+
self.is_published = is_published

tests/test_files_ops.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ def test_binary_upload_succeeds(self):
175175
custom_metadata={"test100": 11},
176176
transformation={"pre": "h-100", "post": [{"type": "transformation", "value": "w-100"}]},
177177
checks="'request.folder' : '/testing-python-folder/'",
178-
isPublished=True
178+
is_published=True
179179
),
180180
)
181181
mock_response_metadata = {

0 commit comments

Comments
 (0)