CloudBrowser Docs
  1. files
CloudBrowser Docs
  • Documentation
    • Introduction
      • What is CloudBrowser?
      • What is Headless browsers?
      • Getting started
      • Playwright
    • Fundamentals
      • Create a Browser Session
      • Use a Browser Profile
      • Manage a Browser Profile
    • Features
      • Stealth Mode
      • Proxies
      • Live View
      • Session Inspector
      • Downloads
      • Uploads
    • User Cases
      • Form Submissions
      • Web Scraping
      • Automated Tests
    • Guides
      • Improving Performance
      • Optimizing Cost
      • Browser Regions
      • Using Profile ID
      • Plans and Pricing
      • Concurrency & Rate Limits
      • Handling Authentication
      • Enerprise Security
    • Inegrations
      • Get Started with Intergrations
      • CloudBrowser MCP Server
      • CloudBrowser MCP Service
  • APIs and SDKs
    • Node.js SDK
    • Profile
      • Get session list
      • Update Instance Fingerprint
    • sessions
      • Create Browser Session
      • Start Session
      • Close Session
    • files
      • Upload File
        POST
      • Download File
        GET
    • plugin
      • Upload Plugin
      • Get Plugin List
      • Update Environment Fingerprint
  • Changelog
  1. files

Upload File

POST
/sessions/uploads

Request

Body Params multipart/form-data
file
file 
optional
File to upload
name
string 
optional
File name

Request samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST '/sessions/uploads' \
--form 'file=@""' \
--form 'name=""'

Responses

🟢200Success
application/json
File uploaded successfully
Body
reqId
string 
optional
code
integer 
optional
msg
string 
optional
data
object 
optional
filepath
string 
optional
Example
{
    "reqId": "string",
    "code": 0,
    "msg": "string",
    "data": {
        "filepath": "string"
    }
}
Previous
Close Session
Next
Download File
Built with