Commit Graph

13 Commits (cc4913d5731631bf1d608c391a31af18e1833003)

Author SHA1 Message Date
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 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