Browse Source

ist ein Array

pull/1/head
Georg Spar 1 year ago
parent
commit
bf92e1c8fc
  1. 4
      wdm.go

4
wdm.go

@ -753,10 +753,10 @@ func uploadFileHandler(writer http.ResponseWriter, req *http.Request) {
if err != nil {
writer.WriteHeader(http.StatusBadRequest)
}
var pho ImgUpload
var pho []ImgUpload
//var pho []Photos
json.Unmarshal(body, &pho)
log.Info("objURL: ", pho.ObjUrl)
log.Info("objURL: ", pho[0].ObjUrl)
/*}
if len(pho) == 0 {
log.Fatal("Error: Size of Array = 0")

Loading…
Cancel
Save