I'm trying to translate some CURL code on postman to upload a file on a server.
I have a key called "file" which is the file I want to upload. On postman, when I pass him the file path, it doesn't work (the api rejects me). On the other hand, when I tell postman that I want to send him a "file" and that I select the file, it works.
Why does it work when I select the file from postman and why doesn't it work when I pass him the path to my file on my computer?
When I give the path to the file (it doesn't work)
When I select the file from postman (it works)
Postman must be doing something in the background that I do not know and do not know ... And I need to know what it is doing so I can use it in my application
Thanks for your attention and your help ! :)