Skip to content

Commit 14299f6

Browse files
committed
docs(file-upload): multer module settings updated
1 parent 5125587 commit 14299f6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

content/techniques/file-upload.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ You can specify multer options in the file interceptors as described above. To s
118118

119119
```typescript
120120
MulterModule.register({
121-
dest: '/upload',
121+
dest: './upload',
122122
});
123123
```
124124

@@ -133,7 +133,7 @@ One technique is to use a factory function:
133133
```typescript
134134
MulterModule.registerAsync({
135135
useFactory: () => ({
136-
dest: '/upload',
136+
dest: './upload',
137137
}),
138138
});
139139
```
@@ -165,7 +165,7 @@ The construction above instantiates `MulterConfigService` inside `MulterModule`,
165165
class MulterConfigService implements MulterOptionsFactory {
166166
createMulterOptions(): MulterModuleOptions {
167167
return {
168-
dest: '/upload',
168+
dest: './upload',
169169
};
170170
}
171171
}

0 commit comments

Comments
 (0)