[Fixes] File sharing

This commit is contained in:
Paul Schneider 2017-04-11 01:19:35 +02:00
commit 06e9d04701

View file

@ -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 =>
{ {