Justin / LeftwitchJ

Trigger on convex storage

Why not? i need to validate the file the user uploaded isnt some du-du and doing that after uploading to the presigned-url would be risky since the client could just deny the "check file validity" action, the other solution would be uploading from an http action but they are also limited to 20MB sooo idk

In firebase i would make a trigger on upload, check the file contents, put them through ffmpeg/ffprobe and if invalid delete again, i don't really see how to do it in convex
Was this page helpful?