|
|
|
@ -29,7 +29,10 @@ namespace Yavsc
|
|
|
|
FileProvider = new PhysicalFileProvider(UserFilesDirName),
|
|
|
|
FileProvider = new PhysicalFileProvider(UserFilesDirName),
|
|
|
|
RequestPath = new PathString(Constants.UserFilesPath),
|
|
|
|
RequestPath = new PathString(Constants.UserFilesPath),
|
|
|
|
EnableDirectoryBrowsing = env.IsDevelopment()
|
|
|
|
EnableDirectoryBrowsing = env.IsDevelopment()
|
|
|
|
|
|
|
|
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
UserFilesOptions.EnableDefaultFiles=true;
|
|
|
|
|
|
|
|
UserFilesOptions.StaticFileOptions.ServeUnknownFileTypes=true;
|
|
|
|
|
|
|
|
|
|
|
|
UserFilesOptions.StaticFileOptions.OnPrepareResponse += async context =>
|
|
|
|
UserFilesOptions.StaticFileOptions.OnPrepareResponse += async context =>
|
|
|
|
{
|
|
|
|
{
|
|
|
|
|