2
0 Comments

Day #8 – file upload support added to FormCaster

I added in support for multiple file uploads on FormCaster forms. Uploads are handled using the very excellent Multer.

Incoming uploads are immediately stored on the server and are available once the stream completes. They are then copied to a storage server and when the copy completes the original upload is removed from the main server and the field entry is updated with the new storage location.

This is perhaps slightly more complex than directly streaming files to a storage server, but it maintains more flexibility too. I may want to add Dropbox or GoogleDrive storage of files at some point, and this pattern would be the best way to implement those given the potential for minor delays in file availability there.

Files are only available to be retrieved by logged in users, and a simple route proxies the file to the admin user when it needs to be downloaded.

Have some thoughts? The Facebook group is the place to share. https://www.facebook.com/groups/2844508445593836/permalink/2857478117630202/

Trending on Indie Hackers
After 10M+ Views, 13k+ Upvotes: The Reddit Strategy That Worked for Me! 42 comments Getting first 908 Paid Signups by Spending $353 ONLY. 24 comments 🔥Roast my one-man design agency website 21 comments I talked to 8 SaaS founders, these are the most common SaaS tools they use 19 comments What are your cold outreach conversion rates? Top 3 Metrics And Benchmarks To Track 19 comments Hero Section Copywriting Framework that Converts 3x 12 comments