NetTalk Central

Author Topic: Content Disposition  (Read 3573 times)

Alberto

  • Hero Member
  • *****
  • Posts: 1873
    • MSN Messenger - alberto-michelis@hotmail.com
    • View Profile
    • ARMi software solutions
    • Email
Content Disposition
« on: December 18, 2008, 06:29:36 AM »
Hi,
with PR 24

Trying to change the name the explorer shows to the user downloading a file:

Insetead of:

p_web.HeaderDetails.ContentDisposition = 'attachment; filename="'&clip(loc:fileName)&'"'

I´ve coded:

p_web.HeaderDetails.ContentDisposition = 'attachment; filename="This is your download"'

but this does not work.

the file does not download.

How must I do it??

Thanks
Alberto


-----------
Regards
Alberto

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Content Disposition
« Reply #1 on: December 21, 2008, 10:21:45 AM »
Hi Alberto,

What you've done is the same as me. You've just replaced a variable with a constant string.

I copied your code to Example 40, and put it right under the line that's already there - and it worked perfectly. So I think perhaps your problem is a bit different.

Feel free to post your modified example 40 here if you like.

Cheers
Bruce