Skip to main content

Upload a file and retrieve URL

POST 

/urlshare

Uploads a file to the server and returns a URL where the uploaded file can be accessed temporarily. This endpoint supports uploading images only, images shoudl be 1024x1024, or 1024x768 or 768x1024, otherwise they will be resized automatically. Files larger than 5mb will be rejected.

Request

Body

required

File to be uploaded. Only images under 5mb are allowed.

    file binary

    File to be uploaded. Supported formats include .png, .jpg, .jpeg, .svg, .gif, .bmp, .tif, .tiff, .webp

Responses

File uploaded successfully and URL returned

Schema
    url string

    URL to access the uploaded file.

Loading...