Skip to main content
Table of Contents

Media API

BrowserStack provides support for uploading your own files for testing

It’s easy to test scenarios that require device to be setup with sample media/non-media files, so that it’s available to your application during test execution.

How to use the files in tests

  1. Before starting test execution on BrowserStack, you first need to upload your files using REST API. The REST API response will return a media_url for each successful file upload.
  2. Set media_url value depending on the automation framework you are using:

Note:

  1. Only 5 files are allowed per test
  2. Supported format for images are JPG, JPEG, PNG, GIF, BMP and maximum file size allowed for images is 10MB
  3. Supported format for videos are .mp4, .mov and .3gp and maximum file size allowed for videos is 50MB
  4. Supported format for non-media files are XLS, XLSX, DOC, DOCX, PDF, CSV, TXT and maximum file size allowed is 15MB
  5. Supported format for contacts is .vcf and maximum file size allowed is 2MB
  1. Files are stored on BrowserStack servers for at most 30 days.

We're sorry to hear that. Please share your feedback so we can do better

Contact our Support team for immediate help while we work on improving our docs.

We're continuously improving our docs. We'd love to know what you liked






Thank you for your valuable feedback