This repository has been archived by the owner on Nov 2, 2024. It is now read-only.
✨ Feature/bug - Anonymize image file names on user upload #1172
Labels
type: feature
new functionality
Short description of the feature
Currently when someone uploads a profile picture, the name of the file uploaded is stored. See screenshot.
Of course
hero-image.jpg
in the screen shot is not a concern since that is not a user profile picture.This behavior is at least the case for profile pictures, I don't know if other parts are of the site is affected as well.
Why do you want this feature?
I guess most of the time an image you upload has some name like
IMG_XXXX
so it's not a big deal, but to have more user privacy a file name change could be implemented before it gets sent to the database. Either randomized or tied to user userid/stilid.If your local file name was
I_look_so_good_in_this_image
, maybe you wouldn't want to share that with everyone.Also I don't think there is any real reason to store this information.
I find that in https://github.com/Dsek-LTH/member-page/blob/3f71ea4440516048a965454ce938c01733ff9597/frontend/pages/members/[id]/change-profile-picture.tsx#L77 there is some randomization going on to the file name, but this isn't actually reflected as seen in the screenshot provided. So this might actually be a bug?
Who else could want this feature?
Probably not a high priority, and I guess most users don't even know about this behavior but it could be appreciated and shouldn't be hard to implement.
The text was updated successfully, but these errors were encountered: