Skip to content

Powered by Grav + Helios

Upload Site Media

Upload Site Media

POST /media
Upload files to the site-level media directory.

Parameters

Name Type Description
path optional string Subfolder path to upload into (created automatically if it does not exist)

Response Codes

201 Files uploaded successfully
401 Unauthorized
422 Validation error

Upload one or more files to the user/media directory. Use the path query parameter to upload into a subfolder. The request body should use multipart/form-data with a file field. Maximum upload size per file is 64 MB.