Justin
1
- Create a new “ServiceStack ASP.NET Empty” project.
- Add a zip file to the main project
- Add an index.html file to the main project
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title></title>
</head>
<body>
<h5 style="color:white;">Zip File: <a href="\ZippedFile.zip" download>Download</a></h5>
</body>
</html>
- Start the application and click the download link
The download fails with a “Failed - Forbidden”
mythz
2
You need to add any file extensions not included in the white-list with:
SetConfig(new HostConfig {
AllowFileExtensions = { "zip" }
});