Including more locs

This commit is contained in:
Rick Falkvinge
2018-03-05 17:31:26 +01:00
parent a6583e84dc
commit 9ad9f6bb2a
2 changed files with 1013 additions and 3 deletions
@@ -179,7 +179,7 @@ namespace Swarmops.Pages.v5.Support
{
contentType = MediaTypeNames.Application.Pdf;
if (!serverFileNameLower.EndsWith(".pdf"))
if (serverFileNameLower.EndsWith(".png"))
{
// Converted PDF, so cut filename to raw GUID length
@@ -190,12 +190,12 @@ namespace Swarmops.Pages.v5.Support
else if (clientFileNameLower == (".png"))
{
contentType = "image/png"; // why isn't this in MediaTypeNames?
documentDownloadName += ".pdf";
documentDownloadName += ".png";
}
else if (clientFileNameLower.EndsWith (".jpg") || clientFileNameLower.EndsWith(".jpeg"))
{
contentType = MediaTypeNames.Image.Jpeg;
documentDownloadName += ".pdf";
documentDownloadName += ".jpg";
}
else
{
+1010
View File
File diff suppressed because it is too large Load Diff