You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
returnc.JSON(http.StatusNotFound, errorResponse(ErrCodeNotFound, "Collection not found", fmt.Sprintf("Collection '%s' does not exist", name)))
320
+
}
321
+
322
+
entryParam:=c.Param("entry")
323
+
entry, err:=url.PathUnescape(entryParam)
324
+
iferr!=nil {
325
+
entry=entryParam
326
+
}
327
+
328
+
fpath, err:=collection.GetEntryFilePath(entry)
329
+
iferr!=nil {
330
+
returnc.JSON(http.StatusNotFound, errorResponse(ErrCodeNotFound, "Entry not found", fmt.Sprintf("Entry '%s' does not exist in collection '%s'", entry, name)))
331
+
}
332
+
333
+
returnc.File(fpath)
334
+
}
335
+
}
336
+
312
337
// uploadFile handles uploading files to a collection
0 commit comments