This repository was archived by the owner on Sep 8, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +14
-12
lines changed Expand file tree Collapse file tree 2 files changed +14
-12
lines changed Original file line number Diff line number Diff line change @@ -74,18 +74,19 @@ async def create_signed_url(
7474 ] = f"{ self ._client .base_url } { cast (str , data ['signedURL' ]).lstrip ('/' )} "
7575 return data
7676
77- async def get_public_url (self , path : str , options : TransformOptions = None ) -> str :
77+ async def get_public_url (self , path : str , options : TransformOptions = {} ) -> str :
7878 """
7979 Parameters
8080 ----------
8181 path
8282 file path, including the path and file name. For example `folder/image.png`.
8383 """
84- render_path = (
85- "render/image/authenticated" if options .get ("transform" ) else "object"
86- )
87- transformation_query = urllib .parse .urlencode (options )
88- query_string = f"?{ transformation_query } " if transformation_query else ""
84+ render_path = "object"
85+ # render_path = (
86+ # "render/image/authenticated" if options.get("transform") else "object"
87+ # )
88+ # transformation_query = urllib.parse.urlencode(options)
89+ # query_string = f"?{transformation_query}" if transformation_query else ""
8990 _path = self ._get_final_path (path )
9091 return f"{ self ._client .base_url } { render_path } /public/{ _path } /{ query_string } "
9192
Original file line number Diff line number Diff line change @@ -74,18 +74,19 @@ def create_signed_url(
7474 ] = f"{ self ._client .base_url } { cast (str , data ['signedURL' ]).lstrip ('/' )} "
7575 return data
7676
77- def get_public_url (self , path : str , options : TransformOptions = None ) -> str :
77+ def get_public_url (self , path : str , options : TransformOptions = {} ) -> str :
7878 """
7979 Parameters
8080 ----------
8181 path
8282 file path, including the path and file name. For example `folder/image.png`.
8383 """
84- render_path = (
85- "render/image/authenticated" if options .get ("transform" ) else "object"
86- )
87- transformation_query = urllib .parse .urlencode (options )
88- query_string = f"?{ transformation_query } " if transformation_query else ""
84+ render_path = "object"
85+ # render_path = (
86+ # "render/image/authenticated" if options.get("transform") else "object"
87+ # )
88+ # transformation_query = urllib.parse.urlencode(options)
89+ # query_string = f"?{transformation_query}" if transformation_query else ""
8990 _path = self ._get_final_path (path )
9091 return f"{ self ._client .base_url } { render_path } /public/{ _path } /{ query_string } "
9192
You can’t perform that action at this time.
0 commit comments