Page MenuHomePhorge

Uploading Files to Subdirectories on seafile backends doesn't work
ClosedPublic

Authored by dhoffend on Mar 26 2022, 10:30 PM.
Tags
Referenced Files
F11891112: D3475.diff
Thu, Apr 25, 2:26 AM
Unknown Object (File)
Sun, Apr 21, 4:49 PM
Unknown Object (File)
Fri, Apr 19, 5:57 PM
Unknown Object (File)
Sun, Apr 14, 2:20 AM
Unknown Object (File)
Wed, Apr 10, 1:04 AM
Unknown Object (File)
Thu, Mar 28, 3:45 AM
Unknown Object (File)
Mar 11 2024, 11:59 PM
Unknown Object (File)
Mar 2 2024, 9:30 AM
Subscribers
None

Details

Summary

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

Test Plan

Connect a Seafile storage. Create a SubDirectory and try to upload
a file.

Diff Detail

Repository
rC chwala
Branch
fix-seafile-upload
Lint
No Lint Coverage
Unit
No Test Coverage
Build Status
Buildable 38755
Build 15715: arc lint + arc unit

Event Timeline

dhoffend created this revision.

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

dhoffend retitled this revision from Summary: Uploading Files to Subdirectories on seafile backends doesn't work to Uploading Files to Subdirectories on seafile backends doesn't work.Mar 26 2022, 10:50 PM
This revision is now accepted and ready to land.Jul 7 2022, 12:16 PM

Any updates when this will land?

This revision was automatically updated to reflect the committed changes.