Multi file upload, updated styling.
This commit is contained in:
@@ -19,6 +19,7 @@ func generateID() (string, error) {
|
||||
}
|
||||
|
||||
func HandleFileUpload(c *gin.Context) {
|
||||
// Try to get a single file first (backward compatibility)
|
||||
file, header, err := c.Request.FormFile("file")
|
||||
if err != nil {
|
||||
c.JSON(http.StatusBadRequest, gin.H{"error": "No file provided"})
|
||||
|
||||
Reference in New Issue
Block a user