upload Profile Picture
@PostMapping(value = "/image/upload" )
Handles uploading profile pictures for authenticated users.
Return
ResponseEntity with OperationSuccessfulResponse; HTTP status 200 OK if upload succeeds, 401 UNAUTHORIZED if the session is invalid or unauthenticated, or 500 INTERNAL_SERVER_ERROR on I/O issues
Author
Oliver Lear Sigwarth (theoliverlear)
Parameters
file
image file uploaded by the user; must be a valid MultipartFile
session
current HTTP session for user authentication and session validation
See also
Product User
Profile Picture
Session Service
Profile Picture Operations
Product User Service