标签云

微信群

扫码加入我们

WeChat QR Code

This question already has an answer here:PUT vs. POST in REST33 answersI have done a lot of reading to understand difference between PUT and POST and from what I have gathered, PUT should have a resource specified in the URI. Does this mean that when uploading a file, the client specified what filename it is going to be? What about the place where the file is going to be stored, do I specify this in the corresponding method in PHP for this endpoint? Should multipart data ever be sent via PUT at all?