Commit graph

7 commits

Author SHA1 Message Date
Simon Ser 87b75c44d2 fileupload: fix http-origin pattern matching
Mirror what github.com/nhooyr/websocket does and match the host
only. Using the full URL never results in a match, because it
contains slash characters.
2024-04-16 13:19:21 +02:00
Simon Ser 7f66926c41 fileupload: URL-escape output filename
If the source filename contains special characters like "%", we
would return them as-is in the final URL, and try to parse them as
a URL encoded escape sequence in the GET request.
2024-03-11 11:46:26 +01:00
Simon Ser f214e5a5aa fileupload: hardcode a few primary file extensions 2024-03-11 11:41:54 +01:00
Simon Ser 185f6ae3bd fileupload: append ext to filename if missing 2024-03-11 10:46:48 +01:00
Alex McGrath 6b89b99784 fileupload: add CORS header fields 2024-02-13 18:54:35 +01:00
Simon Ser c1fc2f1e61 fileupload: serve select MIME types as inline 2024-01-25 14:23:28 +01:00
Simon Ser b76cb6d5e6 Add support for file uploads
Co-authored-by: delthas <delthas@dille.cc>
2024-01-24 23:32:07 +01:00