Skip to main content
MediaUpload Media File (Image/Video/Document/Certificate) (Server 4)
TestMu AI
StatusCommunityBlog
Media

Upload Media File (Image/Video/Document/Certificate) (Server 4)

Upload a media file (.jpg, .png, .mp4, .pdf, etc.) for use.

POST
/mfs/v1.0/media/upload
Upload Media File (Image/Video/Document/Certificate) (Server 4)
curl --request POST \
--url "https://manual-api.lambdatest.com/mfs/v1.0/media/upload/" \
--header "Authorization: Basic <encoded-value>" \
--header "Content-Type: multipart/form-data" \
--form 'media_file=<media_file>' \
--form 'type=<type>' \
--form 'custom_id=<custom_id>'
{
"media_url": "lt://MEDIA12345",
"name": "image.png",
"custom_id": "Image_1",
"Status": "Successful"
}

Authorizations

Authorizationstringheaderrequired

Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.

Body

multipart/form-data
media_filestring<binary>required

The media file to be uploaded.

typeenum<string>

Type of media (e.g., image, video, document, Certificate).

ImageVideoDocumentsCertificate
custom_idstring

Optional custom identifier for later retrieval.

Response

application/json

Successfully uploaded the media file.

media_urlstring
namestring
custom_idstring
Statusstring
Upload Media File (Image/Video/Document/Certificate) (Server 4)
curl --request POST \
--url "https://manual-api.lambdatest.com/mfs/v1.0/media/upload/" \
--header "Authorization: Basic <encoded-value>" \
--header "Content-Type: multipart/form-data" \
--form 'media_file=<media_file>' \
--form 'type=<type>' \
--form 'custom_id=<custom_id>'
{
"media_url": "lt://MEDIA12345",
"name": "image.png",
"custom_id": "Image_1",
"Status": "Successful"
}