I'm trying to upload a file to pydio with pydio-sdk-python but no matter the size of the file, it always return: Upload error: file is partial (410). I'm using python3.
sdk = PydioSdk(url="https://by.hrcls.tv",
ws_id="my-files",
remote_folder="/",
user_id='',
auth=('login', 'password'),
skip_ssl_verify=True)
f = "/Volumes/data/Users/predat/dl.pdf"
sdk.upload(local=f,
local_stat={'size': os.stat(f).st_size},
path=os.path.basename(f),
callback_dict=None)
Traceback (most recent call last):
File "/Volumes/data/Users/predat/Documents/dev/python/pydio/pydiosdkpython/remote.py", line 727, in upload
self.perform_request(url=url, type='post', data=data, files=files, with_progress=callback_dict)
File "/Volumes/data/Users/predat/Documents/dev/python/pydio/pydiosdkpython/remote.py", line 331, in perform_request
stream=stream, with_progress=with_progress)
File "/Volumes/data/Users/predat/Documents/dev/python/pydio/pydiosdkpython/remote.py", line 277, in perform_with_tokens
max_size=self.upload_max_size)
File "/Volumes/data/Users/predat/Documents/dev/python/pydio/pydiosdkpython/remote.py", line 1054, in upload_file_with_progress
parse_upload_rep(resp)
File "/Volumes/data/Users/predat/Documents/dev/python/pydio/pydiosdkpython/remote.py", line 999, in parse_upload_rep
raise PydioSdkDefaultException(str(http_response.text))
pydiosdkpython.exceptions.PydioSdkDefaultException: Upload error: file is partial (410)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "test.py", line 33, in <module>
callback_dict=None)
File "/Volumes/data/Users/predat/Documents/dev/python/pydio/pydiosdkpython/remote.py", line 729, in upload
if e.message == '507':
AttributeError: 'PydioSdkDefaultException' object has no attribute 'message'