Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ddeb2948b7 |
+5
-1
@@ -112,7 +112,11 @@ namespace YYApi
|
||||
/// <returns></returns>
|
||||
public static IApplicationBuilder UseYYUpload(this IApplicationBuilder builder)
|
||||
{
|
||||
return builder.UseStaticFiles();
|
||||
return builder.UseStaticFiles(new StaticFileOptions
|
||||
{
|
||||
DefaultContentType = "application/x-msdownload",
|
||||
ServeUnknownFileTypes = true
|
||||
});
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
Reference in New Issue
Block a user