ComponentOne Web API Edition
UploadFile Method

C1.Web.Api.Storage Namespace > StorageController Class : UploadFile Method
The path which the uploaded file is put.
The upload request.
The file name
Uploads file with the specified path.
Syntax
'Declaration
 
<HttpPutAttribute()>
<RouteAttribute("api/storage/{*path}")>
<HttpPostAttribute()>
Public Function UploadFile( _
   ByVal path As String, _
   ByVal re As UploadRequest, _
   Optional ByVal subpath As String _
) As IHttpActionResult
[HttpPut()]
[Route("api/storage/{*path}")]
[HttpPost()]
public IHttpActionResult UploadFile( 
   string path,
   UploadRequest re,
   string subpath
)

Parameters

path
The path which the uploaded file is put.
re
The upload request.
subpath
The file name

Return Value

The result.
See Also

Reference

StorageController Class
StorageController Members