Feat: Upload profile image#693
Merged
phoenixdahdev merged 4 commits intohngprojects:devfrom Mar 2, 2025
Merged
Conversation
Am0du
requested changes
Mar 1, 2025
Contributor
Am0du
left a comment
There was a problem hiding this comment.
Configure to use s3 bucket and add the necessary configs to application-example.properties
|
|
||
| @Service | ||
| @RequiredArgsConstructor | ||
| //@RequiredArgsConstructor |
Contributor
Author
There was a problem hiding this comment.
I have reverted back to the original code basee structured
|
|
||
| private static final String UPLOAD_DIR = "profile_photos"; | ||
|
|
||
| public ProfileServiceImpl(UserService userService, UserRepository userRepository, ProfileRepository profileRepository) { |
Contributor
There was a problem hiding this comment.
Codebase is designed to use lombok for constructor injection
Contributor
Author
|
@Am0du I've implemented the profile image upload using AWS S3, updated the configuration, and improved error handling. |
Contributor
Author
Contributor
Author
phoenixdahdev
approved these changes
Mar 2, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Upload Profile Image API Implementation
Fix: Implemented required changes for issue #677
Description
This PR addresses issue #677 by implementing a new endpoint for uploading profile images. The image is stored in memory, and a correlating link is provided for access. The following modifications were made:
[Changes]
successful and failure Test Screenshots
Testing Instructions
mvn spring-boot:run.Checklist
Related Issues
Closes #677