mirror of
https://github.com/wekan/wekan.git
synced 2025-04-24 05:57:13 -04:00
FileStoreStrategyFactory, added logic to determine the right file storage strategy to use
This commit is contained in:
parent
79051e5779
commit
efc19ea88c
1 changed files with 1 additions and 1 deletions
|
@ -31,7 +31,7 @@ export default class FileStoreStrategyFactory {
|
|||
if (!storage) {
|
||||
storage = fileObj.versions[versionName].storage;
|
||||
if (!storage) {
|
||||
if (fileObj.meta.source == "import") {
|
||||
if (fileObj.meta.source == "import" || fileObj.versions[versionName].meta.gridFsFileId) {
|
||||
// uploaded by import, so it's in GridFS (MongoDB)
|
||||
storage = STORAGE_NAME_GRIDFS;
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue