Skip to content
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -422,6 +422,7 @@ options = UploadFileRequestOptions(
overwrite_custom_metadata=True,
custom_metadata={'testss': 12},
transformation=transformation
checks="'request.folder' : '/testing-python-folder'" # To run server side checks before uploading files. Notice the quotes around request.folder and /testing-python-folder.
)

result = imagekit.upload_file(file='<url|base_64|binary>', # required
Expand Down
1 change: 1 addition & 0 deletions imagekitio/constants/files.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,5 @@
"custom_metadata",
"embedded_metadata",
"transformation",
"checks",
]
3 changes: 3 additions & 0 deletions imagekitio/models/UploadFileRequestOptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ def __init__(
overwrite_custom_metadata: bool = None,
custom_metadata: json = None,
transformation: json = None,
checks: str = None,
):
if use_unique_file_name is not None:
self.use_unique_file_name = use_unique_file_name
Expand Down Expand Up @@ -48,3 +49,5 @@ def __init__(
self.custom_metadata = custom_metadata
if transformation is not None:
self.transformation = transformation
if checks is not None:
self.checks = checks
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

setuptools.setup(
name="imagekitio",
version="4.0.1",
version="4.1.0",
description="Python wrapper for the ImageKit API",
long_description=long_description,
long_description_content_type="text/markdown",
Expand Down
5 changes: 3 additions & 2 deletions tests/test_files_ops.py

Large diffs are not rendered by default.