I am uploading file using the file endpoint. I use...
# prisma-whats-new
y
I am uploading file using the file endpoint. I use python. I have no problem using the requests lib but when I use aiohttp my file names are preceeded by the name of the encoding i.e.
Copy code
data =aiohttp.FormData()  
    data.add_field('data', open('../docs-to-upload/page2.html','rb'), filename='Jens.html', content_type='text/html')    
    async with <http://session.post|session.post>(url, data=data) as response:
        return await response.text()