## Forum archive 2000-2006

### Lucas Carey - welcomeAction.pl prior to set(x).pdf

by Arnold Pizer -
Number of replies: 0
 welcomeAction.pl prior to set(x).pdf topic started 2/4/2001; 3:00:22 PMlast post 2/6/2001; 5:18:11 PM
 Lucas Carey - welcomeAction.pl prior to set(x).pdf  2/4/2001; 3:00:22 PM (reads: 2266, responses: 5) When you go to download a problem set webwork sends welcomeAction.pl first, which you have to open prior to being sent the pdf file. This works fine with msie and netscape but does not work with konqueror(the kde browser). I was wondering why welcomeAction is sent first, or if I just didn't set something up correctly. -Lucas <| Post or View Comments |>

 Arnold K. Pizer - Re: welcomeAction.pl prior to set(x).pdf  2/4/2001; 7:30:20 PM (reads: 2617, responses: 2) The script welcomeAction.pl generates a pdf file on the fly which is sent back to the browser. We try to suggest a name for this file (via "Content-disposition: attachment; filename= \"${login_name_for_psvn}_Set${setNumber}.pdf"\n";) but this is not an html standard and does not seem to work very well any more. I'm not sure if there is a way force a filename on the returned file. If someone knows how to do this, I would appreciate knowing. Your browser is assigning as a file name the name of the script that generated the file which is why you are seeing welcomeAction.pl being returned. We give this file the content type (mime type) application/pdf which is why it is handled OK by MSIE and earlier versions of Netscape (or maybe earlier versions accept the suggested file name). For Netscape 6, you have to configure things so that files with mime type application/pdf are opened by acrobat. [Explicit directions on how to do this for both Netscape and MSIE are given below.] <| Post or View Comments |>

 John Imbrie - Re: welcomeAction.pl prior to set(x).pdf  2/6/2001; 1:00:42 PM (reads: 2966, responses: 1) I don't think pdf download works with MSIE 5.5. When I upgraded to 5.5, it stopped working. When you request the file, you are given the option of saving welcome.pl to disk, but when this is done, the result is not readable by acrobat, even if the extension is changed to pdf. It seems that the script is being sent instead of the pdf file. <| Post or View Comments |>