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

Adding Image/video upload to IPFS #86

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Naveen-Kumar-Murugan
Copy link

Description

The given task was to enable a feature where the Image or a Video of the candidate could be added along with the name and description when the owner adds the candidates of the election.

Feature Enabled

  • The option to add only Image/Video files is provided along with the preview option where the owner could preview what the file uploaded is before pushing it to IPFS.
  • The ipfs hash is added to the IPFS blockchain along with the JSON body, which consists of the name and description of the Candidate, direct change to the Blockchain was not feasible.
  • The url of the uploaded image is shown to the owner in a successful toast message.

Env file update.

  • Since it was noted that upload to IPFS should be separate from that of the pintoIPFS one, new PROJECT_ID and PROJECT_SECRET keys are needed to upload to ipfs using the kubo-rpc-client package,

ScreenShots

This is the Screenshot of the Add Candidate modal.
Screenshot 2025-01-08 at 7 39 55 PM

This is the Screenshot of the Successful Toast message after uploading Image/Video to IPFS
Screenshot 2025-01-08 at 7 40 38 PM

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.

1 participant