Funkcjonalność tej witryny będzie ograniczona w czasie konserwacji. Jeśli artykuł nie rozwiązuje twojego problemu i chcesz zadać pytanie, to nasza społeczność wsparcia jest dostępna na @FirefoxSupport na Twitterze i /r/firefox na Reddicie.

Przeszukaj pomoc

Unikaj oszustw związanych z pomocą.Nigdy nie będziemy prosić Cię o dzwonienie na numer telefonu, wysyłanie SMS-ów ani o udostępnianie danych osobowych. Zgłoś podejrzaną aktywność, korzystając z opcji „Zgłoś nadużycie”.

Więcej informacji

open/save dialog box - filename appearing on dialog

  • 1 odpowiedź
  • 1 osoba ma ten problem
  • 1 wyświetlenie
  • Ostatnia odpowiedź 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\");

Wszystkie odpowiedzi (1)

more options

Aren't you missing a quote?

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