Accessing files through CDN

Vapor Cloud provides users with a easy to use CDN to access files stored on S3.

There are multiple ways to expose the files depending on the type.


Our CDN support multiple image types. When uploading a file as an Image, it gives the option to to real-time resizing of files.

To make sure this is stable, you need to upload your files to a folder called images on S3.

So e.g.:


I will then be able to access the file in the browser:

To resize or crop the image, i can do:

# Resize to 50px width

# Resize to 50px height

# Crop to 50x50px

Other files & Large files

To access other file types (PDF, docx etc.) you can use raw means it will access S3 directly, and by then not have problems with larger files.