AIRON Fitness is an AI-powered fitness companion supporting your personal health journey by delivering customized fitness and meal plans tailored to your goals and preferences.
Prepare BE for profile image upload and update
Following the article on storing image in MongoDB
Request frontend testing using the following format or equivalent to our own environment
<form action="/userProfile" method="post" enctype="multipart/form-data"> <input type="file" name="image" /></form>
Image should be able to display using the following format
<img src="data:<%=userProfile.profileImage.contentType%>;base64, <%=userProfile.profileImage.data.toString('base64')%>" />
Prepare BE for profile image upload and update Following the article on storing image in MongoDB
Request frontend testing using the following format or equivalent to our own environment
<form action="/userProfile" method="post" enctype="multipart/form-data"> <input type="file" name="image" /></form>
Image should be able to display using the following format
<img src="data:<%=userProfile.profileImage.contentType%>;base64, <%=userProfile.profileImage.data.toString('base64')%>" />