Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Fix error file exist on photo #158

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

kevel-dev
Copy link

@kevel-dev kevel-dev commented Jan 28, 2025

Some times when the user changes the insuree photo, the be raises and error: File exists
Even after adding your corrections here: https://openimis.atlassian.net/browse/OP-2065, we still encountered this bug. So So we also changed the "xb" et "wb" to allows updating the data in the directory instead of raising the error.

@delcroip
Copy link
Member

delcroip commented Jan 29, 2025

it means the FE is still sending the former UUID of the photo @sniedzielski did you made sure the UUID was removed when a new photo is uploaded
@dragos-dobre @mngoe the current approach remove the old photo from the server, bug or feat ?

@kevel-dev
Copy link
Author

I usually observe this bug when i update the photo two times without refreshing the page

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants