Hello, I’m trying to send a photo file to an api. I’ve tried several ways, including the web post file block.
Researching, I saw that a lot of people used the K104 Terminal extension, so let this be my path too, but I don’t have any results from the server.
I must run:
Thanks for the suggestion, but these sites don’t show how to upload the photo.
I had used this method before, but the server does not receive the photo.
PS. The server is working perfectly
The server responds 200 in case of success or 400 in case of an error. If it’s a server error, it responds 500.
The submission is done with this header and the body in form-data with the attribute file.
In this app that I’m developing, it already consumes several api`s from this endpoint, only this photo upload that I can’t do through kodular.
It is important to understand if the api requires multi-part form data. If it does, it is unlikely you can use the web component to upload the file. You may be able to upload using the custom webview extension.
Hello @Laercio!! I’m struggling with the same problem, I create a endpoint API using FastAPI and Python and I want to POST an image using Kodular on the API.
Did you find any solution?