Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <form action="upload.php" method="post" enctype="multipart/form-data">
- Select image to upload:
- <input type="file" name="fileToUpload" id="fileToUpload">
- <input type="submit" value="Upload Image" name="submit">
- </form>
- files={'fileToUpload': open(uploading.jpg', 'rb)}
- p=requests.post(url, files=files)
Add Comment
Please, Sign In to add comment