mirror of
https://github.com/wekan/wekan.git
synced 2025-12-17 16:00:13 +01: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) {
|
if (!storage) {
|
||||||
storage = fileObj.versions[versionName].storage;
|
storage = fileObj.versions[versionName].storage;
|
||||||
if (!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)
|
// uploaded by import, so it's in GridFS (MongoDB)
|
||||||
storage = STORAGE_NAME_GRIDFS;
|
storage = STORAGE_NAME_GRIDFS;
|
||||||
} else {
|
} else {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue