Skip to content
Closed
Prev Previous commit
Next Next commit
Update apps/files/src/services/DropService.ts
Co-authored-by: Ferdinand Thiessen <[email protected]>
Signed-off-by: Andrii Rublov <[email protected]>
  • Loading branch information
arublov and susnux authored Feb 13, 2024
commit d02ce2616c7f82007a43f08d75fe971dd00669cc
2 changes: 1 addition & 1 deletion apps/files/src/services/DropService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ const handleFileUpload = async (file: File, path: string = '') => {
let forbiddenChar

if(forbiddenChar = forbidden.find(char => file.name.includes(char))){
showError(t('files', `"${forbiddenChar}" is not allowed inside a file name.`));
showError(t('files', '"{forbiddenChar}" is not allowed inside a file name.', { forbiddenChar }))
}else{
try {
return await uploader.upload(`${path}${file.name}`, file)
Expand Down