Remove all files in array. This is used to clean up something that went wrong.
(files []ImageConfig)
| 64 | // Remove all files in array. This is used to clean up something that went |
| 65 | // wrong. |
| 66 | func removeAll(files []ImageConfig) { |
| 67 | for _, conf := range files { |
| 68 | go RemoveFileFromGCP(conf.FileName) |
| 69 | } |
| 70 | } |
| 71 | |
| 72 | // UploadFile uploads a file to the server |
| 73 | func handleRequest(w http.ResponseWriter, r *http.Request) { |
no test coverage detected