Skip to content

refactor: Use custom decorator for upload files#727

Merged
sashko9807 merged 2 commits intopodkrepi-bg:masterfrom
sashko9807:refactor/custom-decorat-r-for-upload-files
Apr 7, 2026
Merged

refactor: Use custom decorator for upload files#727
sashko9807 merged 2 commits intopodkrepi-bg:masterfrom
sashko9807:refactor/custom-decorat-r-for-upload-files

Conversation

@sashko9807
Copy link
Copy Markdown
Member

Closes FE-2218

Motivation and context

Currently when there is file upload for campaign application filenames in cyrillic are not stored correctly due to the the multer defaulting filenames latin1. This results in filename being stored in gibberish in database.

Filenames in cyrillic being stored in gibberish

Added global decorator which overrides uploadFiles, and encodes the filename correctly to uf8.
Added linter rule to ensure that uploadedFiles decorator from nest/common is not used anywhere in the code.

@github-actions
Copy link
Copy Markdown

github-actions bot commented Apr 6, 2026

✅ Tests will run for this PR. Once they succeed it can be merged.

@sashko9807 sashko9807 added the run tests Allows running the tests workflows for forked repos label Apr 6, 2026
@github-actions github-actions bot removed the run tests Allows running the tests workflows for forked repos label Apr 6, 2026
@sashko9807 sashko9807 added the run tests Allows running the tests workflows for forked repos label Apr 7, 2026
@github-actions github-actions bot removed the run tests Allows running the tests workflows for forked repos label Apr 7, 2026
@sashko9807 sashko9807 merged commit 3bcdf81 into podkrepi-bg:master Apr 7, 2026
9 of 10 checks passed
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.

The file names in the candidate campaigns are not visualized correctly

2 participants