|
|
|
@ -724,8 +724,8 @@ func uploadFileHandler(writer http.ResponseWriter, req *http.Request) {
|
|
|
|
|
log.WithFields(log.Fields{formKey: formValue}).Info("parsing from Form: ") |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if req.Form["file"] != nil { |
|
|
|
|
for i := 0; i < len(req.Form["file"]); i++ { |
|
|
|
|
/*if req.Form["file"] != nil { |
|
|
|
|
for i := 0; i < len(req.Form["file"]); i++ { */ |
|
|
|
|
log.Info("File-Name:", req.FormValue("file.name")) |
|
|
|
|
|
|
|
|
|
file, handler, err := req.FormFile("file") |
|
|
|
@ -746,9 +746,9 @@ func uploadFileHandler(writer http.ResponseWriter, req *http.Request) {
|
|
|
|
|
pho[i].ItembId = 0 |
|
|
|
|
pho[i].ItemextId = 0 |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
/* } |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
} */ |
|
|
|
|
if len(pho) == 0 { |
|
|
|
|
log.Fatal("Error: Size of Array = 0") |
|
|
|
|
writer.WriteHeader(http.StatusInternalServerError) |
|
|
|
|