Commit Graph

13 Commits (408a22695615ba4f832c8f0ba9d0db17f5d689e7)

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