linagora / twake-drive

The open-source alternative to Google Drive.
GNU Affero General Public License v3.0
107 stars 21 forks source link

🏢 Stable folders and files uploads:: API endpoint #714

Open shepilov opened 1 month ago

shepilov commented 1 month ago

New endpoint to upload a file with body:


content: Readable (of first chunk)
first-time:
    total_chunk_count: number
    parent_id; string # same as root DriveItem
    subpath: string
    item: Partial<DriveFile>
    version: Partial<FileVersion>
    file: Partial<File>

times-after:
    chunk-number?

return { data for another endpoint to append further chunks )