Commit Graph

19 Commits (67d1470ac04142e4437f88416f1cbb8b36a11827)

Author SHA1 Message Date
diff 67d1470ac0 Add MPL license 2021-03-28 17:26:29 +00:00
diff 2fae1c2b46 Add some detail to error messages, echo errors to the console. 2021-03-26 06:53:21 +00:00
diff 3e0dea55d8 Add logging for incoming HTTP requests and received files. 2021-03-25 20:12:05 +00:00
diff 293d95b699 Add a thin layer of comments on everything 2021-03-25 19:52:32 +00:00
diff cc4913d573 Run go fmt
It has some Opinions on my code. Mostly whitespace and organizing the ordering of my structs.
2021-03-25 19:22:41 +00:00
diff bbdc5325ae Move a bit of template to its proper location.
`multiple` attribute belongs on file inputs, not buttons.
2021-03-25 17:44:34 +00:00
diff 408a226956 Add support for multi-file uploads. 2021-03-25 17:43:37 +00:00
diff a62bda0546 Try to escape angle brackets so Gitea doesn't eat them 2021-03-25 05:44:02 +00:00
diff e5eeb85b1d Frick I forgot to `git add` the actual screenshots 2021-03-25 05:39:48 +00:00
diff d6e0d21e89 Mention transfer.sh in README and add screenshots to README. 2021-03-25 05:35:34 +00:00
diff 697bf21eda Improve styling 2021-03-24 17:25:24 +00:00
diff 9d5d6acbfc Don't use fileName at all when uploading 2021-03-24 16:51:34 +00:00
diff c1edf992f9 Make sure all requests are complete before shutting down.
Missed a spot in the net/http docs. Calling Server.Shutdown() causes
ListenAndServe to return *immediately*, and when it does main() exits and
the "Upload Success" message gets cut off before it can be fully sent, which
spooks HTTP clients a bit.

To avoid that, you have to wait for the call to Server.Shutdown() to return,
and then signal back to main() that it's now safe to exit.
2021-03-24 06:01:31 +00:00
diff 0b02918dfb Add success message for uploads. 2021-03-24 05:44:09 +00:00
diff 5ea944695d Add README, tweak wording in main package description. 2021-03-24 04:37:27 +00:00
diff b0e6894621 Refactor Config: export all fields and don't pass by reference. 2021-03-24 03:44:36 +00:00
diff aa0822ceea Fixed typo 2021-03-24 03:15:37 +00:00
diff c79402bc54 Add error handling to GetConfig() and main() 2021-03-24 03:14:29 +00:00
diff b8998f6090 Initial commit 2021-03-24 01:06:30 +00:00