I'm using POSTMAN, and I'm trying to send an file using PUT Method. Is it correct to send it using the x-www-form-urlencoded option?
Also, I can't select the FILE
field option. How can I do this? I'm trying to edit an user image.
I'm using POSTMAN, and I'm trying to send an file using PUT Method. Is it correct to send it using the x-www-form-urlencoded option?
Also, I can't select the FILE
field option. How can I do this? I'm trying to edit an user image.
While using Postman especially when you test file upload please ensure that,
in Headers:
The Content-type field has been set as multipart/form-data in Headers.
in Body:
form-data option should be remain as default.
Choose File option instead of text from dropdown at the right side.
Type File in text box where placeholder is key.
Hope this helps!
Follow below screen short :