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 f684766ffcb6aff8201d2de35d6f01d4aac79010
2 changes: 1 addition & 1 deletion apps/files/src/services/DropService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ const handleFileUpload = async (file: File, path: string = '') => {

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