Upload a file to Cloud Storage

This REST API uploads a file to Cloud Storage.

Upload a file to Cloud Storage REST API

Server Method Endpoint
https://api.aspose.cloud/v4.0 PUT /words/storage/file/{path}

, where:

  • path (required) — path where to upload including filename and extension e.g. /file.ext or /Folder 1/file.ext If the content is multipart and path does not contains the file name it tries to get them from filename parameter from Content-Disposition header.

You can use the following parameters in a REST request:

Parameter Name Data Type Required/Optional Description
storageName string Optional Storage name

Use $multipart/form-data request to combine one or more properties into a single body:

Property Name Data Type Required/Optional Description
fileContent string(binary) Required File to upload

Upload a file to Cloud Storage usage examples

Let’s look at practical examples of using the web service. You can do this both with cURL and Postman utilities, and from your code in various programming languages: Python, Java, JavaScript, C#, PHP, C++, Go, Ruby, Swift, Dart.

How to upload a file to Cloud Storage with cURL or Postman

One of the easiest and fastest ways to call a REST API is to use cURL or Postman:

How to upload a file to Cloud Storage in Python, Java, C#, C++, JavaScript and other programming languages

Using SDK is the quickest way to speed up the development. Please take a look at the provided code examples to quickly call this web service from your favourite programming language:

See Also

  • GitHub repository — explore Aspose.Words Cloud SDK Family. These software libraries take care of all low-level document-processing details.