Categories
Development PHP Python

How to send multipart/data to PHP using Python requests

I’ve been trying to send an image to another server for a very long time, but for some reason it doesn’t want to accept files through requests. In the response, I get {“error”: “No panorama provided. Files = []”, “files”: []}. How do I build a request correctly? Correct code JS: https://gitlab.com/nickw1/opentrailview/blob/master/js/uploader.js Python POST code: […]