Plugger AI
Search
K
Comment on page

Uploading File

CURL

1
curl -X POST -H "Content-Type: multipart/form-data" -F "[email protected]" https://platform.api.plugger.ai/tmp/upload/example.png
If the status code is 200, you can access the file the following url: https://tmp.cameralyze.co/example.png

PYTHON

import requests
files = {"file": open("example.png", "rb")}
response = requests.post("https://platform.api.plugger.ai/tmp/upload/example.png", files=files)
# Step 2: PUT request to upload a.png file
if response.status_code == 200:
file_url = "https://tmp.cameralyze.co/example.png"
else:
print("POST request failed with status code:", response.status_code)
Last modified 6mo ago