Commit d3dac9b7 authored by Vivek Naik's avatar Vivek Naik
Browse files

removed filetype validation

parent 181afc2f
Branches
Tags
2 merge requests!134Mep release271219,!133Add: Asset FDB and merged bucket type
Showing with 7 additions and 7 deletions
......@@ -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)
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment