Web API Core | ComponentOne
C1.Web.Api.Storage Namespace / StorageController Class / UploadFile Method
The path which the uploaded file is put.
The upload request.
The file name

In This Topic
    UploadFile Method
    In This Topic
    Uploads file with the specified path.
    Syntax
    'Declaration
     
    
    <HttpPutAttribute()>
    <HttpPostAttribute()>
    <RouteAttribute("api/storage/{*path}")>
    Public Function UploadFile( _
       ByVal path As String, _
       ByVal re As UploadRequest, _
       Optional ByVal subpath As String _
    ) As IActionResult
    [HttpPut()]
    [HttpPost()]
    [Route("api/storage/{*path}")]
    public IActionResult 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