Document name/filename and type/filetype as alias
This commit is contained in:
@@ -225,26 +225,24 @@ curl -ks -XPOST https://ocis.test/remote.php/dav/spaces/{space-id} \
|
||||
|
||||
Upload-metadata key-value pairs aren't specified in the general tus docs. The following ones are supported in the ownCloud ecosystem:
|
||||
|
||||
| Parameter (key) | Example (value, MUST be Base64 encoded) | Description |
|
||||
| ---------------------- | -----------------------------------------------------------------------------------------------------------------------------------------------------| ------------- | ------------------------- |
|
||||
| filename (mandatory) | example.pdf | Filename |
|
||||
| mtime (recommended) | 1701708712 | Modification time (Unix time format) |
|
||||
| checksum (recommended) | SHA1 a330de5886e5a92d78fb3f8d59fe469857759e72 | Checksum, computed from the client |
|
||||
| name | example.pdf | Alternate name sent by the web UI |
|
||||
| type | application/pdf | MIME Type, sent by the web UI |
|
||||
| filetype | application/pdf | MIME Type, sent by the web UI |
|
||||
| relativePath | undefined | File path relative to the folder that is being uploaded, including the filename. Sent by the web UI |
|
||||
| spaceId | 8748cddf-66b7-4b85-91a7-e6d08d8e1639$a9778d63-21e7-4d92-9b47-1b81144b9993 | Sent by the web UI |
|
||||
| spaceName | Personal | Sent by the web UI |
|
||||
| driveAlias | personal/admin | Sent by the web UI |
|
||||
| driveType | personal | Sent by the web UI |
|
||||
| currentFolder | / | Sent by the web UI |
|
||||
| currentFolderId | ODc0OGNkZGYtNjZiNy00Yjg1LTkxYTctZTZkMDhkOGUxNjM5JGE5Nzc4ZDYzLTIxZTctNGQ5Mi05YjQ3LTFiODExNDRiOTk5MyFhOTc3OGQ2My0yMWU3LTRkOTItOWI0Ny0xYjgxMTQ0Yjk5OTM= | Sent by the web UI |
|
||||
| uppyId | uppy-example/pdf-1e-application/pdf-238300 | Sent by the web UI |
|
||||
| relativeFolder | | File path relative to the folder that is being uploaded, without filename. Sent by the web UI |
|
||||
| tusEndpoint | https://ocis.ocis-traefik.latest.owncloud.works/remote.php/dav/spaces/8748cddf-66b7-4b85-91a7-e6d08d8e1639$a9778d63-21e7-4d92-9b47-1b81144b9993 | Sent by the web UI |
|
||||
| uploadId | 71d5f878-a96c-4d7b-9627-658d782c93d7 | Sent by the web UI |
|
||||
| topLevelFolderId | undefined | Sent by the web UI |
|
||||
| routeName | files-spaces-generic | Sent by the web UI |
|
||||
| routeDriveAliasAndItem | cGVyc29uYWwvYWRtaW4= | Sent by the web UI |
|
||||
| routeShareId | | Share ID when uploading into a received folder share. Sent by the web UI |
|
||||
| Parameter (key) | Example (value, MUST be Base64 encoded) | Description |
|
||||
| -------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- |
|
||||
| `name` OR `filename` (mandatory) | example.pdf | Filename |
|
||||
| `mtime` (recommended) | 1701708712 | Modification time (Unix time format) |
|
||||
| `checksum` (recommended) | SHA1 a330de5886e5a92d78fb3f8d59fe469857759e72 | Checksum, computed from the client |
|
||||
| `type` OR `filetype` | application/pdf | MIME Type, sent by the web UI |
|
||||
| `relativePath` | undefined | File path relative to the folder that is being uploaded, including the filename. Sent by the web UI |
|
||||
| `spaceId` | 8748cddf-66b7-4b85-91a7-e6d08d8e1639$a9778d63-21e7-4d92-9b47-1b81144b9993 | Sent by the web UI |
|
||||
| `spaceName` | Personal | Sent by the web UI |
|
||||
| `driveAlias` | personal/admin | Sent by the web UI |
|
||||
| `driveType` | personal | Sent by the web UI |
|
||||
| `currentFolder` | / | Sent by the web UI |
|
||||
| `currentFolderId` | 8748cddf-66b7-4b85-91a7-e6d08d8e1639$a9778d63-21e7-4d92-9b47-1b81144b9993!a9778d63-21e7-4d92-9b47-1b81144b9993 | Sent by the web UI |
|
||||
| `uppyId` | uppy-example/pdf-1e-application/pdf-238300 | Sent by the web UI |
|
||||
| `relativeFolder` | | File path relative to the folder that is being uploaded, without filename. Sent by the web UI. |
|
||||
| `tusEndpoint` | https://ocis.ocis-traefik.latest.owncloud.works/remote.php/dav/spaces/8748cddf-66b7-4b85-91a7-e6d08d8e1639$a9778d63-21e7-4d92-9b47-1b81144b9993 | Sent by the web UI |
|
||||
| `uploadId` | 71d5f878-a96c-4d7b-9627-658d782c93d7 | Sent by the web UI |
|
||||
| `topLevelFolderId` | undefined | Sent by the web UI |
|
||||
| `routeName` | files-spaces-generic | Sent by the web UI |
|
||||
| `routeDriveAliasAndItem` | cGVyc29uYWwvYWRtaW4= | Sent by the web UI |
|
||||
| `routeShareId` | | Share ID when uploading into a received folder share. Sent by the web UI |
|
||||
|
||||
Reference in New Issue
Block a user