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
At a reachable public URL
Upload from URL — simpler
On your server or local machine
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.
Upload response fields
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?
