> Hi Brad,
>
>> I need to figure out which headers to set to force the files to
>> download and not serve.
>
> We use something like:
>
> <%
> set cache control("private")
> set response
> header("content-disposition";"attachment;filename="+ $documentName)
> %>
>
> I think we also make sure that $documentName doesn't contain any spaces
> or other "non-document" characters. Some browsers will choke if the
> "filename" has whitespace in it.
Thanks for the whitespace tip. In order to prevent overwrites due to
potential file name collisions, I'm storing the filename as an
MD5(timestamp + random).ext, but would like to serve the file back with
the original name, or something close. Have you tried to URL encode the
whitespace or do you strip it out or replace with underscores?
Best,
Brad
>
> Best Regards,
> - Clayton
> _______________________________________________
> Active4D-dev mailing list
> [email protected]
> http://mailman.aparajitaworld.com/mailman/listinfo/active4d-dev
> Archives: http://mailman.aparajitaworld.com/archive/active4d-dev/
>
_______________________________________________
Active4D-dev mailing list
[email protected]
http://mailman.aparajitaworld.com/mailman/listinfo/active4d-dev
Archives: http://mailman.aparajitaworld.com/archive/active4d-dev/