diff --git a/pkg/filesystem/hooks.go b/pkg/filesystem/hooks.go index ea8ea530..062edec8 100644 --- a/pkg/filesystem/hooks.go +++ b/pkg/filesystem/hooks.go @@ -321,7 +321,7 @@ func GenericAfterUpload(ctx context.Context, fs *FileSystem) error { fs.recycleLock.Lock() go func() { defer fs.recycleLock.Unlock() - file.Name = strings.Trim(file.Name, ".tacitpart") + file.Name = strings.TrimRight(file.Name, ".tacitpart") fs.GenerateThumbnail(ctx, file) }() }