[Fixes] File sharing
This commit is contained in:
parent
1d3a884b86
commit
06e9d04701
1 changed files with 4 additions and 1 deletions
|
|
@ -29,7 +29,10 @@ namespace Yavsc
|
|||
FileProvider = new PhysicalFileProvider(UserFilesDirName),
|
||||
RequestPath = new PathString(Constants.UserFilesPath),
|
||||
EnableDirectoryBrowsing = env.IsDevelopment()
|
||||
|
||||
};
|
||||
UserFilesOptions.EnableDefaultFiles=true;
|
||||
UserFilesOptions.StaticFileOptions.ServeUnknownFileTypes=true;
|
||||
|
||||
UserFilesOptions.StaticFileOptions.OnPrepareResponse += async context =>
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue