
Building a File Sharing App with Puter.js
In this tutorial, we'll build a file sharing app that lets you upload any file and instantly get a shareable public URL using Puter.js . Demo: https://file-sharing-example.puter.site/ Key Features Our file sharing app provides a simple drag-and-drop interface for sharing files: Drag & drop upload : Select files by dragging them onto the page or clicking to browse Cloud storage : Files are stored in Puter's cloud file system Public URLs : Each uploaded file gets a public URL via Puter Hosting Persistent subdomain : The app remembers your subdomain across sessions using Puter KV Getting Started This app is a single index.html file with no build step. Add Puter.js via CDN: <script src= "https://js.puter.com/v2/" ></script> Puter.js is a JavaScript library that provides features like AI , cloud file storage , database , hosting , and authentication, all running client-side with a User-Pays Model . Building the App The app includes a drag-and-drop UI, file previews, and progress indicators.
Continue reading on Dev.to Webdev
Opens in a new tab

