2
4 Comments

Building functionality that allows users to upload images - what are some major pitfalls to watch out for?

Hey all!
As the title says, I'm evolving my colour search engine site to allow image uploads and I am wondering if folks have ever built something like this and what were the major lessons learnt. Would be happy to hear about your tech stack, challenges with performance, content moderation etc.

  1. 2

    Hi Camilla,
    Uploading images is my bread and butter for DropEvent. Current stack involves NodeJS server side, and having the browser upload directly to S3 for storage. This way the server isn't bogged down during the upload, and simply gets a POST sent when the image is uploaded with the Key and any other relevant info from the photo as needed.

    There are companies that sell content moderation. I handle it by having a flag that lets you turn on or off moderation, if you choose moderation then you get a notification of the upload but it won't appear until you approve it.

    Hope that helps!

    1. 1

      I haven't spent a lot of time with S3 (or similar) or with file upload in general but what about API key/secret? Isn't keeping that in the front-end exposing it to the public?

      1. 2

        Services like S3 uses signed urls that expire after a given amount of time. So the user can only upload the image to the location you specify whilst the signed url is still valid.

        1. 2

          Exactly. You can give an uploader minutes or an hour to upload to one specific location.

Trending on Indie Hackers
Getting first 908 Paid Signups by Spending $353 ONLY. 24 comments I talked to 8 SaaS founders, these are the most common SaaS tools they use 20 comments What are your cold outreach conversion rates? Top 3 Metrics And Benchmarks To Track 19 comments How I Sourced 60% of Customers From Linkedin, Organically 12 comments Hero Section Copywriting Framework that Converts 3x 12 comments Join our AI video tool demo, get a cool video back! 12 comments