artizticamit / i-book-social-media-website-

A social media website but guess what here you will not have the info about the post origin, who has uploaded the post, but he/she is your friend, have fun finding the which friend has uploaded that post..
https://i-book-frontend.vercel.app
3 stars 8 forks source link

Create logic for uploading background image in frontend #30

Open artizticamit opened 1 month ago

artizticamit commented 1 month ago

Need to create frontend and backend logic for uploading image for background image in profile. Need to follow the same logic for profile pic upload as present here. Please check profile pic upload functionality in client and in api to have the idea of checking it.

NOTE: If taking this issue, please review the code and mention your approach first to me.

devarsh10 commented 3 weeks ago

Hello @artizticamit, I just came across this issue and I will love to work on this. Here's what I am thinking,

Already present uploadFunction():

Currently, the function of upload profile function goes like this, -> Click Upload -> handleUpload function will be triggered -> Triggers the Input field -> Calling handlerProfilePhotoUpdate function -> Appending new photo -> Updating in localStorage user data.

Similar thing I can implement for cover image. If I am on the right path, can you please assign me this issue?

Seems something like this, image

Thank You. Devarsh

devarsh10 commented 3 weeks ago

Hello @artizticamit, I have worked on this issue and tried replicating the same logic used for uploading profile image. Here's how it looks,

image

By the way, the Upload Cover Photo is only visible when I hover the cover-picture.

Here's the link to the branch: Link

Thank you Devarsh

artizticamit commented 2 weeks ago

Sorry for late reply, was busy due to festival week. I will check your work. Thanks for the work.