## 上传文件 **本接口需要选择合适的节点URL进行上传,默认的kstore.ksust.com不能上传。注意将上传文件大小控制在1.0GB以内**。 默认节点upload.kstore.ksust.com将根据用户运营商自动选择节点,推荐使用。 注:其中API参数{fileId}表示目录ID(在该目录下上传文件),根目录为0。默认每100MB最多上传100个文件,以此类推。 ``` curl https://upload.kstore.space/upload/{fileId}?access_token=<token> -F "file=@filename" ``` ~~~[api] post:https://upload.kstore.space/upload/{fileId} *access_token=11-c4a1ccd34fc8498b8c67facbbb536c7d#认证码 *multipart:file=multipart文件#文件(File域) <<< success { "code": 0, "data": { "path": "superbenchcn.sh", "realpath": "e2e01b39971c7e74ec87d26ce3cbbd44", "size": 9267, "createTime": 1584110775753, "downloadUrl": "https://download.kstore.space/api/v1/storage/download/11/superbenchcn.sh", "name": "superbenchcn.sh", "id": 130, "time": 1584110774725, "type": "file", "userId": 11, "downloadCount": 0, "parentId": 0 }, "status": 200 } <<< error ~~~