[][src]Module ucare::upload

Upload module contains all upload related API stuff.

Upload API is an addition to the REST API. It provides several ways of uploading files to the Uploadcare servers. Every uploaded file is temporary and subject to be deleted within a 24-hour period. To make any file permanent, you should store or copy it.

The package provides uploading files by making requests with payload to the Uploadcare API endpoints. There are two basic upload types:

  • Direct uploads, a regular upload mode that suits most files less than 100MB in size. You won’t be able to use this mode for larger files.

  • Multipart uploads, a more sophisticated upload mode supporting any files larger than 10MB and implementing accelerated uploads through a distributed network.

Structs

FileInfo

Holds file information in the upload context

FileParams

Holds all possible params for the file upload

FileToken

Respose for the FromUrlData::Token

FromUrlParams

Parameters for upload from public URL link

GroupInfo

Group information

MultipartData

Response for starting multipart upload

MultipartParams

Params for starting multipart upload

Service

Service is used to make calls to file API.

ShortFileInfo

Holds returned file information

Enums

FromUrlData

Holds data returned by from_url

FromUrlStatusData

Holds the response returned by from_url_status

ToStore

Sets the file storing behaviour

UploadStatus

Upload status

UrlDuplicates

Used for FormUrlParams

Functions

new_svc

creates new upload service instance