#6046: FileRepository.GetFile: compare both filenames in the same cast.
This commit is contained in:
12
Oqtane.Application/Client/Properties/launchSettings.json
Normal file
12
Oqtane.Application/Client/Properties/launchSettings.json
Normal file
@@ -0,0 +1,12 @@
|
||||
{
|
||||
"profiles": {
|
||||
"Oqtane.Application.Client": {
|
||||
"commandName": "Project",
|
||||
"launchBrowser": true,
|
||||
"environmentVariables": {
|
||||
"ASPNETCORE_ENVIRONMENT": "Development"
|
||||
},
|
||||
"applicationUrl": "https://localhost:62381;http://localhost:62382"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -121,7 +121,7 @@ namespace Oqtane.Repository
|
||||
var file = db.File.AsNoTracking()
|
||||
.Include(item => item.Folder)
|
||||
.FirstOrDefault(item => item.FolderId == folderId &&
|
||||
item.Name.ToLower() == fileName);
|
||||
item.Name.ToLower() == fileName.ToLower());
|
||||
|
||||
if (file != null)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user