Prohledat stránky podpory

Vyhněte se podvodům. Za účelem poskytnutí podpory vás nikdy nežádáme, abyste zavolali nebo poslali SMS na nějaké telefonní číslo nebo abyste sdělili své osobní údaje. Jakékoliv podezřelé chování nám prosím nahlaste pomocí odkazu „Nahlásit zneužití“.

Learn More

open/save dialog box - filename appearing on dialog

  • 1 odpověď
  • 1 má tento problém
  • 1 zobrazení
  • Poslední odpověď od 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\");

Všechny odpovědi (1)

more options

Aren't you missing a quote?

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