POST api/FileManager/UploadFile

上传文件

Request Information

URI Parameters

None.

Body Parameters

None.

Response Information

Resource Description

UploadFileResponseType
NameDescriptionTypeAdditional information
ResponseInfo

ResponseInfoDTO

None.

FileInfo

FileInfoDTOs

None.

Response Formats

application/json, text/json

Sample:
{
  "ResponseInfo": {
    "IsSuccess": true,
    "ErrorMessage": "sample string 2"
  },
  "FileInfo": {
    "Id": "sample string 1",
    "AppID": "sample string 2",
    "OriginalFileName": "sample string 3",
    "FileType": "sample string 4",
    "FileSize": 5.0,
    "FileSizeExtended": "sample string 6",
    "CreatorAccount": "sample string 7",
    "CreatorId": "sample string 8",
    "CreatorName": "sample string 9",
    "CreateDate": "2017-09-22T03:21:30.3546644+08:00",
    "RelativePath": "sample string 11",
    "ExtensionName": "sample string 12"
  }
}

application/xml, text/xml

Sample:
<UploadFileResponseType xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BF.FileService.WebAPI.Contract">
  <FileInfo>
    <AppID>sample string 2</AppID>
    <CreateDate>2017-09-22T03:21:30.3546644+08:00</CreateDate>
    <CreatorAccount>sample string 7</CreatorAccount>
    <CreatorId>sample string 8</CreatorId>
    <CreatorName>sample string 9</CreatorName>
    <ExtensionName>sample string 12</ExtensionName>
    <FileSize>5</FileSize>
    <FileSizeExtended>sample string 6</FileSizeExtended>
    <FileType>sample string 4</FileType>
    <Id>sample string 1</Id>
    <OriginalFileName>sample string 3</OriginalFileName>
    <RelativePath>sample string 11</RelativePath>
  </FileInfo>
  <ResponseInfo>
    <ErrorMessage>sample string 2</ErrorMessage>
    <IsSuccess>true</IsSuccess>
  </ResponseInfo>
</UploadFileResponseType>
URI parameters
=
Headers | Add header
: Delete
Body
Samples:
Status
Headers
Body