RenderFile returns a file, either displayed inline or downloaded as an attachment. The name and size are taken from the file info.
return c.NotFound("This was found but not sure why we couldn't open it.") } return c.RenderFile(file, "") }
RenderFile is referenced in 6 repositoriesgithub.com/revel/revel
- 1 reference in fakeapp_test.go
- 2 references in app/controllers/app.go
- 1 reference in app/controllers/FileController.go
- 1 reference in app/controllers/api/ApiFileController.go