Closed AbrahamX3 closed 2 weeks ago
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Name | Status | Preview | Comments | Updated (UTC) |
---|---|---|---|---|
quickpic | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | Nov 10, 2024 10:15am |
Also added toast errors in case file
is somehow missing when uploading a file.
I added a shitty alert before I saw this 😭 down to rebase it on current state and move the alerts there?
I added a shitty alert before I saw this 😭 down to rebase it on current state and move the alerts there?
Sure thing, I made validation even better and more dynamic for future tools, check out #65!
Description
This PR adds simple file validation when handling Image and SVG file uploads using their mime type. The error is displayed via a toast using sonner (useful for handling future error messages!)
Preview
https://github.com/user-attachments/assets/8b9b632a-be4f-441a-b08b-1504cb61a8fd
Current
Production currently lets you upload any file type, so this PR fixes that.