0

what http methods are used in servlets to upload/delete files from server:

  • POST
  • GET
  • PUT
  • OPTIONS
  • DELETE
Brian Tompsett - 汤莱恩
  • 5,438
  • 68
  • 55
  • 126
user3085390
  • 177
  • 9

2 Answers2

0

For uploading file you should use post and multipart request amd to delete - delete.

Thrash Bean
  • 658
  • 4
  • 7
0

Use PUT for uploads, DELETE for deletion.
Here is a nice answer with more details:Which HTTP methods match up to which CRUD methods?

Community
  • 1
  • 1
Antoine Wils
  • 337
  • 2
  • 4
  • 20