根据url获取文件信息
GET
/api/getFileInfoByUrl请求参数
Query 参数
url
string
必需
示例值:
http://121.36.109.90:8000/api/file/root/63c40358e4b0505557ac36c9.png
示例代码
返回响应
成功样例(200)
失败样例(200)
HTTP 状态码: 200
内容格式: JSONapplication/json
数据结构
success
boolean
必需
errCode
null
必需
errMessage
null
必需
data
object
必需
url
string
必需
size
integer
必需
filename
string
必需
originalFilename
string
必需
basePath
string
必需
path
string
必需
ext
string
必需
contentType
string
必需
platform
string
必需
thUrl
string
必需
thFilename
string
必需
thSize
integer
必需
thContentType
string
必需
objectId
string
必需
objectType
string
必需
createTime
string
必需
示例成功样例
{
"success": true,
"errCode": null,
"errMessage": null,
"data": {
"url": "http://127.0.0.1:8081/image/test/63c02e732e192ee0fa1eaddf.jpeg",
"size": 50187,
"filename": "63c02e732e192ee0fa1eaddf.jpeg",
"originalFilename": "ceshi.jpeg",
"basePath": "D:/TmpFile/image/",
"path": "test/",
"ext": "jpeg",
"contentType": "image/jpeg",
"platform": "local-image",
"thUrl": "http://127.0.0.1:8081/image/test/63c02e732e192ee0fa1eaddf.jpeg.min.jpg",
"thFilename": "63c02e732e192ee0fa1eaddf.jpeg.min.jpg",
"thSize": 4983,
"thContentType": "image/jpeg",
"objectId": "16",
"objectType": "image",
"createTime": "2023-01-12T15:59:47.000+00:00"
}
}
最后修改时间: 2 years ago