Closed fucksophie closed 2 years ago
@cmorten implemented basic tests and got rid of inflate/charset since they .. don't seem to be needed? I could send compressed data straight to it and it worked
all discussions closed, seems ready to be merged and version to be upped
found quite lot of bugs with previous version. fixed now!
yay! ci fixed (probably issues with skypack..)
replying to all of the comments at once,
router.post(
"/uploadImage",
formData(),
async (req, res) => {
const form = (req.body as FormData);
if (
form.has("image")
) {
const uploaded = await uploadToMinio(
"image",
form.get("image") as File,
this is the pattern I'm using at the moment, maybe we should change it so it's better-typed? not sure how to do that but uh, quite a lot of casting here lol
Wouldn't #160 be more relevant than this PR since MultipartReader
is deprecated and soon to be removed?
Yeah, rather work on #160. @cmorten ?
Shutting support for this repo down. Folks welcome to fork and continue developing elsewhere.
Issue
Supersedes #160, fixes #158 and #159
Details
This is a alternative implementation of #160 which works as a Middleware instead of a property.
Checklist.
[?] Handle compression [x] Write tests [x] Handle proper charsets (not sure if umlauts properly parse 🤷🏽