Make sure that Postman can read files inside the working directory
原因:
我用的是postman agent,然后在网页端upload,本机上没有Working Directory,而是在~/Postman Agent/files
解决办法:
在设置—general—Working Directory找到具体路径,mac上是~/Postman/files
,在本机上创建这个目录就好了
windows可以看这个
https://stackoverflow.com/questions/63987217/postman-error-while-uploading-files-through-form-data-body-type