Toby Jaffey

Results 17 comments of Toby Jaffey

Similar issue I had where the compiler gives no indication of where the error occurred. The error: ``` user@ed5f6dedeaa1:/zig/zigbug2# zig build /opt/zig/zig-linux-aarch64-0.11.0-dev.1912+12b74b2c0/lib/std/mem.zig:3622:9: error: expected []T or *[_]T, passed *main.MyStruct @compileError("expected...

Yes, use ccpil https://github.com/tobyjaffey/cctl/tree/master/ccpil

Looking at my notes, I think I last built this with zig-linux-aarch64-0.11.0-dev.1971+5a12d0070.tar.xz You're right, there have been lots of changes to the build process. I will try to find sometime...

I agree about base64 encoded files getting big. I only chose to do it that way so that each individual media file on disk would have the binary data and...

I'm happy for you to do the content description, yes. There's some code in cubiti to calculate image file dimensions and the blurhash too, which can be reused: https://github.com/ringtailsoftware/cubiti/blob/main/cubiti-server/routes/mastodon.js#L987

> In my testing, the POST will fail for files that are larger than about 1 MB. Chrome debugger doesn't really show much - it says the request canceled. >...

@benbrown I'm done. Ready for you to try it.

> If we use the file extension then we'd still have to decode ".png" into "image/png" and so on. In theory, so long as the browser sends a valid mimetype...

> The original filename must be available in the browser - it could be passed as part of the payload, and then can use that to apply the extension. Ultimately...

That'll do it