Alex BourgOriginal post
Rank 2: Process
Hi, I created a simple python function, I am trying to POST a file to the function, to be processed, but it seems to only accept certain file types as POST.. when I change the file to docx, then the request become GET for some reason.
Python
def main(context): return context.res.json({"method": context.req.method})Summary
Developers are experiencing an issue where their POST request is changing to GET when trying to send a docx file to a Python function for processing. A potential solution could be to ensure that the content type of the request is set correctly when sending the file.