-
-
Save parzibyte/fc6865a124846c533eaf4da6bfa89599 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
encabezadosDeArchivos := r.MultipartForm.File["archivo"] | |
nombre := r.Form.Get("nombre") | |
log.Printf("Nombre: %v", nombre) | |
encabezadoPrimerArchivo := encabezadosDeArchivos[0] | |
primerArchivo, err := encabezadoPrimerArchivo.Open() | |
if err != nil { | |
log.Printf("Error al abrir archivo: %v", err) | |
return | |
} | |
defer primerArchivo.Close() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment