This patch fixes uploading for new files. Tested with Seafile 8.0 and 9.0.
It also removes some php warnings when fileapi_backend_storage_disabled is
disabled
Details
Details
- Reviewers
machniak mollekopf - Group Reviewers
Chwala Developers
Connect a Seafile storage. Create a SubDirectory and try to upload
a file.
Diff Detail
Diff Detail
- Repository
- rC chwala
- Branch
- fix-seafile-upload
- Lint
No Linters Available - Unit
No Unit Test Coverage - Build Status
Buildable 38755 Build 15715: arc lint + arc unit
Event Timeline
Comment Actions
Here's the documentation to the current web api parameters for file uploads:
https://download.seafile.com/published/web-api/v2.1/file-upload.md
To make it work we've 2 ways: request upload link with parent_dir=/full/path and upload with relative_path= or request upload link with parent_dir=/ and upload with relative_path=full/path
I opted for the 2nd version to stay in line with the old way