S
shapper
Hello,
On a web project I am returning a file for download as follows:
return File(document.File, "application/pdf", "Bons Pão.pdf");
I get the following error:
An invalid character was found in the mail header.
If I change the file name to "Bons.pdf" it works fine.
So I think some characteres are not allowed for the file name ...
However the file name it will be taken from the Document Title and I
will always get such characters.
Is there a way to maybe convert ã, à, Á, etc to a or A; õ, ò, Ó, etc
to o and O; ... ?
I think there might be a way to get a valid string for the filename
somehow.
Thanks,
Miguel
On a web project I am returning a file for download as follows:
return File(document.File, "application/pdf", "Bons Pão.pdf");
I get the following error:
An invalid character was found in the mail header.
If I change the file name to "Bons.pdf" it works fine.
So I think some characteres are not allowed for the file name ...
However the file name it will be taken from the Document Title and I
will always get such characters.
Is there a way to maybe convert ã, à, Á, etc to a or A; õ, ò, Ó, etc
to o and O; ... ?
I think there might be a way to get a valid string for the filename
somehow.
Thanks,
Miguel