This content originally appeared on DEV Community and was authored by Inês Catana
This is a submission for the The Pinata Challenge
What I Built
Fun With Files is a decentralized file-sharing platform where users can upload, view, and preserve their most cherished memories. It allows users to create a "time capsule" of images, accompanied by titles, descriptions, and tags. With integrated file upload and retrieval, Fun With Files ensures a seamless way to store and interact with media files using Pinata for decentralized file storage.
The application is built using Next.js for the frontend, Tailwind CSS for the UI, and MongoDB for storing metadata. Pinata is used to store the files on IPFS, ensuring decentralized and immutable file storage.
Demo
My Code
More Details
In this project, I integrated Pinata in multiple ways:
File Upload to IPFS: Users can upload images via a simple frontend interface. These files are securely uploaded to IPFS using Pinata's API, ensuring decentralized storage.
File Retrieval from Pinata Gateway: The images uploaded by users are fetched and displayed from the Pinata gateway, ensuring users can view their files stored on IPFS.
IPFS CIDs for Content Addressing: Each file has a unique CID (Content Identifier) which is stored in MongoDB along with additional metadata like title, description, and tags. This CID is used to retrieve the files.
Features:
Decentralized Storage with Pinata: All files are stored on IPFS using Pinata, providing a permanent and secure way to store user memories.
File Management: Users can upload, view, and download images with titles and descriptions,
This content originally appeared on DEV Community and was authored by Inês Catana
Inês Catana | Sciencx (2024-10-13T02:36:58+00:00) Fun With Files – Time Capsule Submission for the Pinata Challenge. Retrieved from https://www.scien.cx/2024/10/13/fun-with-files-time-capsule-submission-for-the-pinata-challenge/
Please log in to upload a file.
There are no updates yet.
Click the Upload button above to add an update.