Select a directory →
1
Upload File
POST /api/storage/file/upload-url → OSS PUT → confirm2
Files & Delete
POST /api/storage/file/deleteAPI Surface
This page calls HTTP API (browser → plugin). Other plugins call Native Rust trait (plugin → plugin, in-process).
HTTP API— browser/frontend calls
POST /api/storage/directory/create
POST /api/storage/directory/list
POST /api/storage/file/upload-url
POST /api/storage/file/confirm
POST /api/storage/file/delete
POST /api/storage/file/list
GET /api/storage/dl?id=xxx
Native Rust API— plugin → plugin in-process (via
StorageApi trait)trait StorageApi {
fn system_upload(system, file_name, path) → String
fn system_delete(system, file_name) → Result
fn system_list(system, page, size) → PaginatedFiles
}