For the complete documentation index, see llms.txt. This page is also available as Markdown.

Uploading

Upload images and PDFs to VIESUS Cloud via URL or signed upload URL. Response fields, retention, and deletion.

Every enhancement starts with an upload. The upload creates a persistent file record that you reference by id in subsequent enhancement requests.


Which method to use

Your file is...
Method

At a reachable public URL

Upload from URL — simpler

On your server or local machine

Signed upload URL


Upload from a URL

The simplest method. VIESUS Cloud fetches the file directly from the URL you provide.

mutation {
  createUploadFromUrl(
    input: {
      url: "https://www.example.com/photo.jpg"
    }
  ) {
    id
    status
    filesize
    mimetype
    extension
    originalFilename
    filename
    width
    height
    url
    startedAt
    finishedAt
    duration
  }
}

Save the returned id — you need it to trigger enhancements.

curl example:


Upload with a signed URL

For files on your server, local machine, or user uploads that go directly from the browser to VIESUS Cloud storage. This is a three-step process.

1

Request a signed URL

2

PUT the file to the signed URL

Use the uploadUrl from the previous step to PUT the file directly to storage:

Node.js:

Browser (file input):

curl:

3

Complete the upload

Finalize using the uploadId from the first step:

The returned id is the upload ID for all subsequent enhancement requests.


Upload response fields

Field
Description

id

Upload identifier — required for enhancement mutations

status

Upload state

filesize

File size in bytes

mimetype

Detected MIME type

extension

File extension

originalFilename

Filename as uploaded

filename

Storage filename

width / height

Image dimensions in pixels (0 for PDFs)

url

URL to access the original uploaded file

startedAt / finishedAt

Upload timestamps (ISO 8601)

duration

Upload processing time in milliseconds


Upload retention

Uploads are stored for 30 days by default, then automatically deleted. To change the default retention for new uploads:

This setting applies to uploads made after the change — existing uploads keep their original retention.

To delete an upload immediately:


Multiple enhancements from one upload

The same upload can be enhanced multiple times with different parameters. You do not need to re-upload the file:

This is useful for generating multiple output variants (e.g., with and without upscaling) without paying upload costs twice.

Last updated

Was this helpful?