Skip to content
This repository was archived by the owner on Oct 30, 2025. It is now read-only.
This repository was archived by the owner on Oct 30, 2025. It is now read-only.

Upload error: file is partial (410) #2

Description

@predat

Hello,

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.

My simple code:

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)

the error:

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'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions