token: ********************
{
"md5": "39b17166b7c822d46c3703ae5049f876", //文件md5
"origin_name": "test.png", // 源文件名
"path": "papers/61ec52e5-2e25-4d07-b9da-df166202fef4.jpg", // 文件在云端存储路径
"size": "1018686", //文件大小,单位为B
"duration": null, // 视频或音频时长
"width": null, // 图片宽度
"height": null, // 图片高度
}
curl --location --request POST 'http://cmi-api.gleg.site/api/files' \
--header 'Content-Type: application/json' \
--header 'token;' \
--data-raw '{
"md5": "39b17166b7c822d46c3703ae5049f876", //文件md5
"origin_name": "test.png", // 源文件名
"path": "papers/61ec52e5-2e25-4d07-b9da-df166202fef4.jpg", // 文件在云端存储路径
"size": "1018686", //文件大小,单位为B
"duration": null, // 视频或音频时长
"width": null, // 图片宽度
"height": null, // 图片高度
}'
{
"code": "string",
"msg": "string",
"data": {
"id": 0,
"md5": "string",
"origin_name": "string",
"path": "string",
"size": 0,
"duration": 0,
"created_by": 0,
"created_at": 0,
"updated_by": null,
"updated_at": null,
"deleted_by": null,
"deleted_at": null,
"pivot": {
"refer_table_type": 0,
"data_id": 0,
"file_id": 0,
"file_type": 0
}
}
}