3 ms·
Wow what incredible timing. I am currently working on an Image Uploader component and the gotchas are hiding around every corner.
by acomms 3y ago
Wow what incredible timing. I am currently working on an Image Uploader component and the gotchas are hiding around every corner.
- upheaval7276 3y agoThis is one of those things I wouldn't suggest you solve with the "roll your own" approach. There are some good libraries out there that will handle this and more. Uppy is one that comes to mind. I created and maintained another popular one for 7 years that i sunset in 2017.
- acomms 3y agoCurrently using react-dropzone seems to solve most of the major issues for me. Use that to get a signed URL via API, then upload from client to image server directly.
- uoaei 3y agoMany exploits involve running arbitrary code hidden in encoded image and video files, notably Pegasus among others. This should be treated as cryptography.