Cerca nel supporto

Attenzione alle mail truffa. Mozilla non chiederà mai di chiamare o mandare messaggi a un numero di telefono o di inviare dati personali. Segnalare qualsiasi attività sospetta utilizzando l'opzione “Segnala abuso”.

Learn More

Questa discussione è archiviata. Inserire una nuova richiesta se occorre aiuto.

open/save dialog box - filename appearing on dialog

  • 1 risposta
  • 1 ha questo problema
  • 1 visualizzazione
  • Ultima risposta di 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\");

Tutte le risposte (1)

more options

Aren't you missing a quote?

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