joshuaf
204
10
Spark

Upload Profile Image to S3 Bucket

Posted 11 months ago by joshuaf

So, I have my own code to upload a profile image to an s3 bucket, but I also want it to work for the settings/profile page. I would think that this would be easy as this is something that most people have to do, but I don't see an easy solution or anything in the docs about it.

Altering the photo controller is not really realistic as I deploy with composer. It is possible to alter the updaet function in update-profile-photo.js asset to point to a different URL, and then rebuild the assets, but this seems wrong.

I tried simply adding a route to direct the /settings/photo post call to my own function, but that never worked for some reason.

Please sign in or create an account to participate in this conversation.

Reply to

Use Markdown with GitHub-flavored code blocks.