Where did you install Firefox from? Help Mozilla uncover 3rd party websites that offer problematic Firefox installation by taking part in our campaign. There will be swag, and you'll be featured in our blog if you manage to report at least 10 valid reports!

সহায়তা খুঁজুন

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

open/save dialog box - filename appearing on dialog

  • 1 উত্তর
  • 1 এই সমস্যাটি আছে
  • 1 দেখুন
  • শেষ জবাব দ্বারা cor-el

more options

My CGI program can download a selected file. The open/save "opening" dialog appears correctly, and the download works fine. The only issue is the filename appearing in the dialog box is the name of the CGI program, not the name of the file to be downloaded. What am I doing wrong? TIA

// CGI snippet

          printf( "Content-Type: %s\n\n", "application/octet-stream");
          printf( "Content-Disposition: attachment; Filename=\"map.pdf\");
My CGI program can download a selected file. The open/save "opening" dialog appears correctly, and the download works fine. The only issue is the filename appearing in the dialog box is the name of the CGI program, not the name of the file to be downloaded. What am I doing wrong? TIA // CGI snippet printf( "Content-Type: %s\n\n", "application/octet-stream"); printf( "Content-Disposition: attachment; Filename=\"map.pdf\");

All Replies (1)

more options

Aren't you missing a quote?

printf( "Content-Disposition: attachment; Filename=\"map.pdf\"");