Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add IPFS Upload for Candidate Videos and Images in Election System #144

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

IronJam11
Copy link
Contributor

Description:
This PR enhances the election system by allowing election owners to upload candidate videos and images for a better user experience. The uploaded files are stored on IPFS using Pinata, ensuring decentralized and reliable storage. Additionally, tests have been updated to check for the presence of ipfsHash.

Changes:

  • Integrated Pinata for uploading candidate videos and images to IPFS.
  • Updated the frontend UI to support file uploads.
  • Modified the smart contract (if applicable) to store ipfsHash for candidates.
  • Updated the test cases to validate the IPFS integration.

Testing:

  • Verified that videos and images are successfully uploaded to IPFS.
  • Checked that the ipfsHash is correctly stored and retrieved.
  • Ensured that the election creation and candidate registration flow remains functional.

Notes:

  • Requires an API key for Pinata (documented in the README if needed).
  • Open to suggestions for improving file size handling or optimizing upload performance.

Screenshots:
image
Screenshot 2025-02-27 at 9 31 44 PM

Related Issue:

Closes #48

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Additional Change to Add Image/Video features for Candidates
1 participant