Thursday, March 7, 2013 7:00:43 PM
Hi Aparajita,
> Search online, this has to be a problem others have come across
Right you are; there's a lot of messages floating around out there with this
particular problem. (But as I know Active4D programmers are the best of the
best, I thought I'd save time and just ask here, of course after searching the
archives first... :-)
Solution is simple enough (at least for Firefox and Safari Mac, which is my
target audience): just enclose the filename in double quotes.
There's apparently more complex solutions floating around, mostly dealing with
IE (which will come as a complete surprise and shock to all of you, I'm sure!
:-).
And there may be issues with extended characters and UTF-8 encoding; however,
again, for the sample file names I've tested with (which had extended
characters), seems to work fine for these 2 browsers on Mac just enclosing the
filename in quotes.
Again, to recap, this appears to work on Safari and Firefox Mac:
set response header("Content-Disposition";"attachment;
filename="+<>Quote+$vName+<>Quote)
where "<>Quote" is my interprocess var with the quote character. I'll follow up
if I run into other strange situations where more complex encoding may be
required.
Cheers!
Michael
-----------------------
On Mar 7, 2013, at 6:20 PM, Aparajita Fishman wrote:
>>> However, on Firefox Mac, if the file name contains a space, it truncates
>>> the name to just the first word of the file.
>>
>> Search online, this has to be a problem others have come across. It's
>> entirely possible there is no workaround.
>
> I mean this a problem ALL web developers have come across, not just Active4D
> developers. The problem and the solution are not specific to Active4D. In
> those cases I always start with a global search.
>
> Regards,
>
> Aparajita
> www.aparajitaworld.com
>
> "If you dare to fail, you are bound to succeed."
> - Sri Chinmoy | www.srichinmoy.org
>
> _______________________________________________
> Active4D-dev mailing list
> [email protected]
> http://list.aparajitaworld.com/listinfo/active4d-dev
> Archives: http://active4d-nabble.aparajitaworld.com/
_______________________________________________
Active4D-dev mailing list
[email protected]
http://list.aparajitaworld.com/listinfo/active4d-dev
Archives: http://active4d-nabble.aparajitaworld.com/