Media›Upload Media File (Image/Video/Document/Certificate) (Server 4)
Media
Upload Media File (Image/Video/Document/Certificate) (Server 4)
Upload a media file (.jpg, .png, .mp4, .pdf, etc.) for use.
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-datamedia_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/jsonSuccessfully uploaded the media file.
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"
}