We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b4c7c1c commit 4c7d27fCopy full SHA for 4c7d27f
1 file changed
ayon_api/server_api.py
@@ -1661,7 +1661,10 @@ def _upload_file(
1661
# Auto-fix missing 'api/'
1662
if response.status_code == 405 and not api_prepended:
1663
api_prepended = True
1664
- if not endpoint.startswith("api/"):
+ if (
1665
+ not endpoint.startswith(self._base_url)
1666
+ and not endpoint.startswith("api/")
1667
+ ):
1668
url = self._endpoint_to_url(endpoint, use_rest=True)
1669
progress.set_destination_url(url)
1670
continue
0 commit comments