Introduction
File upload is already supported in the Gin framework, including single file upload and multi-file upload.
Single file upload
In the Gin
framework, the FormFile("param")
uploaded single file information can be received through the use of the following code:
Multiple file upload
In the Gin
framework, you can MultipartForm()
receive multiple uploaded file information through the use of the following code: