Simple html file upload with parameters

The html code is as follows

<form id="upload-form" action="http://localhost:9090/docs/uploadFile" method="post" enctype="multipart/form-data" >
   <input type="file" id="file" name="file" /> <br />
		<input type="string" id="id" name="id" /> <br />
   <input type="submit" value="Upload" />
</form>

http://localhost:9090/docs/uploadFile represents the url
id that sends the request to the background. The id is the parameter that sends the upload request to the background. It can be multiple

Guess you like

Origin blog.csdn.net/weixin_44812604/article/details/128238914