Skip to content
GitLab
Explore
Projects
Groups
Topics
Snippets
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
MKCLOS
Core Development Platform
corepkgv2
Commits
d3dac9b7
Commit
d3dac9b7
authored
5 years ago
by
Vivek Naik
Browse files
Options
Downloads
Patches
Plain Diff
removed filetype validation
parent
181afc2f
Branches
Branches containing commit
Tags
Tags containing commit
2 merge requests
!134
Mep release271219
,
!133
Add: Asset FDB and merged bucket type
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
dalmdl/corefdb/bucket.go
+7
-7
dalmdl/corefdb/bucket.go
with
7 additions
and
7 deletions
dalmdl/corefdb/bucket.go
+
7
−
7
View file @
d3dac9b7
...
...
@@ -521,13 +521,13 @@ func SaveMediaInFDB(dbName string, indexID string, mediaData []byte, rs *gjson.R
filePath
:=
filepath
.
Join
(
fdb
.
DBPath
,
path
)
// isFilePresent := filemdl.FileAvailabilityCheck(filePath)
fileType
:=
rs
.
Get
(
"fileType"
)
.
String
()
if
len
(
fileType
)
==
0
{
return
recordPath
,
errormdl
.
Wrap
(
"please specify fileType"
)
}
if
fileType
!=
FileTypeAsset
{
return
recordPath
,
errormdl
.
Wrap
(
"fileType not supported: "
+
fileType
)
}
//
fileType := rs.Get("fileType").String()
//
if len(fileType) == 0 {
//
return recordPath, errormdl.Wrap("please specify fileType")
//
}
//
if fileType != FileTypeAsset {
//
return recordPath, errormdl.Wrap("fileType not supported: " + fileType)
//
}
// infileIndex, ok := bucket.InFileIndexMap[FileTypeAsset]
// if !ok {
// loggermdl.LogError("infileIndex for specified fileType not found: ", fileType)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Topics
Snippets