使用 PUT 方法发送图像文件
Send image file using PUT method
我正在使用 POSTMAN,并且正在尝试使用 PUT 方法发送文件。使用 x-www-form-urlencoded 选项发送它是否正确?
此外,我无法 select FILE
字段选项。我怎样才能做到这一点?我正在尝试编辑用户图片。
在使用 Postman 时,尤其是在测试文件上传时,请确保,
在Headers中:
The Content-type field has been set as multipart/form-data in Headers.
在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.
希望对您有所帮助!
按照屏幕下方的简短操作:
我正在使用 POSTMAN,并且正在尝试使用 PUT 方法发送文件。使用 x-www-form-urlencoded 选项发送它是否正确?
此外,我无法 select FILE
字段选项。我怎样才能做到这一点?我正在尝试编辑用户图片。
在使用 Postman 时,尤其是在测试文件上传时,请确保,
在Headers中:
The Content-type field has been set as multipart/form-data in Headers.
在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.
希望对您有所帮助!
按照屏幕下方的简短操作: