fixes
This commit is contained in:
1 parent
c347d2418f
commit
1ad180a052
49 files changed
+6339
-89
No files matched your search
@@ -137,6 +137,8 @@ func (s *Server) createFeedFromMultipart(w http.ResponseWriter, r *http.Request,
|
||||
feedType = "xml"
|
||||
} else if strings.HasSuffix(strings.ToLower(header.Filename), ".json") {
|
||||
feedType = "json"
|
||||
} else if lower := strings.ToLower(header.Filename); strings.HasSuffix(lower, ".xls") || strings.HasSuffix(lower, ".xlsx") || strings.HasSuffix(lower, ".xlsm") || strings.HasSuffix(lower, ".zip") {
|
||||
feedType = "excel"
|
||||
}
|
||||
}
|
||||
if fid, err := uuid.Parse(fileID); err == nil {
|
||||
|
||||
Reference in new issue
Block a user