aboutsummaryrefslogtreecommitdiff
path: root/hotline/flattened_file_object_test.go
AgeCommit message (Collapse)Author
2022-05-25Add partial support for file create/modify timestampsJeff Halter
This replaces hardcoded placeholder create/modify timestamps with the real times, mostly. Create time is OS specific, so for now I'm ignoring it at using the modify time as a stand-in.
2022-05-24Fix file corruption bug for commented filesJeff Halter
This fixes a bug that happens when an uploaded file contains a file comment. The bug happens because the comment byte length was not included when calculating the length of the information header, causing the comment bytes to be appendedto the file.
2022-01-30Sanitize file path input to prevent directory traversalJeff Halter
2021-08-10Add tests and clean upJeff Halter
2021-08-03Ran `gofmt -w .`Jeff Halter
2021-07-28Move code to hotline dirJeff Halter