use 'name' param as GridFS file's 'filename'
This commit is contained in:
parent
a7762aea4f
commit
fb422b4d60
6 changed files with 9 additions and 7 deletions
|
|
@ -144,11 +144,10 @@ export default (
|
|||
}
|
||||
|
||||
// Create DriveFile document
|
||||
const file = await addToGridFS(`${user._id}/${name}`, data, {
|
||||
const file = await addToGridFS(name, data, {
|
||||
user_id: user._id,
|
||||
folder_id: folder !== null ? folder._id : null,
|
||||
type: mime,
|
||||
name: name,
|
||||
comment: comment,
|
||||
properties: properties
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue