Forum Moderators: coopster & phranque

Message Too Old, No Replies

why [1] is inserted in filename download

abc.txt is abc[1].txt

         

Xuefer

10:25 am on Dec 20, 2002 (gmt 0)

10+ Year Member



my code is:

header("Content-Disposition: attachment; filename=\"$name\"");
header("Content-Transfer-Encoding: binary");
header("Content-Type: application/octet-stream; name=\"$name\"");

download 2 file: a.mp3 a.mp3.txt
a.mp3 is downloaded as a.mp3
but a.mp3.txt is downloaded as a[1].mp3.txt

seindal

1:43 pm on Dec 20, 2002 (gmt 0)

10+ Year Member



Maybe you already have a a.mp3.txt in the folder?

Xuefer

1:46 pm on Dec 20, 2002 (gmt 0)

10+ Year Member



no, not even in client cache
but IE insert [1] in main-name of the filename

seindal

2:05 pm on Dec 20, 2002 (gmt 0)

10+ Year Member



It appears to be a browser thing. It gets a download with a *suggested* name of a.mp3.txt, but decides to change the name for some reason.

Have you tried with other browsers.

René.

Xuefer

2:27 pm on Dec 20, 2002 (gmt 0)

10+ Year Member



seems you're right, under phoenix(mozilla) it's named as a.mp3.txt.php, all appended with ".php"
no [1] inserted

it's browser issue
i aliased myget.php to "myget" in apache, works fine for phoenix. (a.mp3.txt)
but.... any solution to IE?