File Open Prompt?

File Open Prompt?

am 28.08.2009 21:03:01 von Dan Shirah

--0003255735d246dfcb04723855c6
Content-Type: text/plain; charset=ISO-8859-1

Greetings,

I'm having a problem trying to get a file download prompt.

Basically I have a page with image links.

When the link is clicked, the user is directed to another page I have. That
page finds the image path based on the image ID from the previous page.

Once the image path is found I copy the image to the local webserver and
rename the proprietary extension, .0D9 to .tif

Once the file is renamed to .tif I want the download prompt to come up. You
know, where it says, "Open" "Save" "Cancel".

I've tried using:

$fp = fopen($new_file,"r") ;
header("Content-Type: image/tif");
while (! feof($fp)) {
$buff = fread($fp,filesize($new_file));
print $buff;
}

But that just gives me heiroglyphics on the screen instead of prompting the
user to download.

Here is my code that copies and renames the file:

if ($page != "" || $page != " ") {
exec("xcopy ".$page." ".$topage."");
}
$orig_file = $topage."\\".$objectid.".0D9";
//echo $orig_file;
$new_file = $topage."\\".$objectid.".tif";
//echo $new_file;

rename($orig_file,$new_file);

Any ideas on how to make the browser give the download prompt for $new_file?

Thanks,
Dan

--0003255735d246dfcb04723855c6--

Re: File Open Prompt?

am 28.08.2009 21:10:40 von Ashley Sheridan

--=-4wesjbTCIVRYKxi/6Fgj
Content-Type: text/plain
Content-Transfer-Encoding: 7bit

On Fri, 2009-08-28 at 15:03 -0400, Dan Shirah wrote:

> Greetings,
>
> I'm having a problem trying to get a file download prompt.
>
> Basically I have a page with image links.
>
> When the link is clicked, the user is directed to another page I have. That
> page finds the image path based on the image ID from the previous page.
>
> Once the image path is found I copy the image to the local webserver and
> rename the proprietary extension, .0D9 to .tif
>
> Once the file is renamed to .tif I want the download prompt to come up. You
> know, where it says, "Open" "Save" "Cancel".
>
> I've tried using:
>
> $fp = fopen($new_file,"r") ;
> header("Content-Type: image/tif");
> while (! feof($fp)) {
> $buff = fread($fp,filesize($new_file));
> print $buff;
> }
>
> But that just gives me heiroglyphics on the screen instead of prompting the
> user to download.
>
> Here is my code that copies and renames the file:
>
> if ($page != "" || $page != " ") {
> exec("xcopy ".$page." ".$topage."");
> }
> $orig_file = $topage."\\".$objectid.".0D9";
> //echo $orig_file;
> $new_file = $topage."\\".$objectid.".tif";
> //echo $new_file;
>
> rename($orig_file,$new_file);
>
> Any ideas on how to make the browser give the download prompt for $new_file?
>
> Thanks,
> Dan

You need to send down the right headers to the browser, so that it knows
it's meant to save the file, and not attempt to display it. If the link
was to a file, you'd have certain header that informed the browser the
mime type of the file.

Thanks,
Ash
http://www.ashleysheridan.co.uk



--=-4wesjbTCIVRYKxi/6Fgj--

Re: File Open Prompt?

am 28.08.2009 21:23:41 von Andrew Ballard

On Fri, Aug 28, 2009 at 3:03 PM, Dan Shirah wrote:
> Greetings,
>
> I'm having a problem trying to get a file download prompt.
>
> Basically I have a page with image links.
>
> When the link is clicked, the user is directed to another page I have. Th=
at
> page finds the image path based on the image ID from the previous page.
>
> Once the image path is found I copy the image to the local webserver and
> rename the proprietary extension, .0D9 to .tif
>
> Once the file is renamed to .tif I want the download prompt to come up. =
 You
> know, where it says, "Open" "Save" "Cancel".
>
> I've tried using:
>
> $fp =3D fopen($new_file,"r") ;
> header("Content-Type: image/tif");
> while (! feof($fp)) {
>       $buff =3D fread($fp,filesize($new_file));
>       print $buff;
>       }
>
> But that just gives me heiroglyphics on the screen instead of prompting t=
he
> user to download.
>
> Here is my code that copies and renames the file:
>
> if ($page !=3D "" || $page !=3D " ") {
>  exec("xcopy ".$page." ".$topage."");
> }
> $orig_file =3D $topage."\\".$objectid.".0D9";
> //echo $orig_file;
> $new_file =3D $topage."\\".$objectid.".tif";
> //echo $new_file;
>
> rename($orig_file,$new_file);
>
> Any ideas on how to make the browser give the download prompt for $new_fi=
le?
>
> Thanks,
> Dan
>

You need to send the content-disposition header in addition to the content-=
type:

header("Content-Disposition: attachment; filename=3D{$clean_file_name};", t=
rue);

The filename shouldn't contain spaces or other special characters.
Some browsers will handle it OK if they do, some won't.

There are several lots of posts in the archives that give more details
on how to do it as well as how to avoid some common problems people
have run into.


Andrew

--
PHP General Mailing List (http://www.php.net/)
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WsNCj4gDQo+IA0KPg==

Re: File Open Prompt?

am 28.08.2009 22:28:58 von Dan Shirah

--000e0cd5ba12a6e6970472398831
Content-Type: text/plain; charset=ISO-8859-1

>
> You will need to add some headers to the page to popup the prompt, at least
> with
> these.
>
> $filename = 'somefile.tif';
> $filesize = filesize($filename);
>
> header('Content-Type: application/force-download');
> header('Content-disposition: attachement; filename=' . $filename);
> header('Content-length: ' . $filesize);
>
> Eric
>
>

I don't know what I'm doing wrong. I've tried:

header('Content-Description: File Transfer');
header('Content-Type: application/force-download');
header('Content-Length: ' . filesize($filename));
header('Content-Disposition: attachment; filename=' . basename($file));
readfile($file);
AND

if (file_exists($new_file)) {
header('Content-Description: File Transfer');
header('Content-Type: application/octet-stream');
header('Content-Disposition: attachment; filename='.basename($new_file
));
header('Content-Transfer-Encoding: binary');
header('Expires: 0');
header('Cache-Control: must-revalidate, post-check=0, pre-check=0');
header('Pragma: public');
header('Content-Length: ' . filesize($new_file));
ob_clean();
flush();
readfile($new_file);
exit;
}

But everything I do just sends heiroglyphics to the screen instead of giving
the download box.

--000e0cd5ba12a6e6970472398831--

Re: File Open Prompt?

am 29.08.2009 09:03:27 von Ralph Deffke

are u shure, u dont send anything out before u send the headers? even one
space would be too much.

ralph_deffke@yahoo.de

"Dan Shirah" wrote in message
news:a16da1ff0908281328k641ea332v25d887c4de5b347c@mail.gmail .com...
> >
> > You will need to add some headers to the page to popup the prompt, at
least
> > with
> > these.
> >
> > $filename = 'somefile.tif';
> > $filesize = filesize($filename);
> >
> > header('Content-Type: application/force-download');
> > header('Content-disposition: attachement; filename=' . $filename);
> > header('Content-length: ' . $filesize);
> >
> > Eric
> >
> >
>
> I don't know what I'm doing wrong. I've tried:
>
> header('Content-Description: File Transfer');
> header('Content-Type: application/force-download');
> header('Content-Length: ' . filesize($filename));
> header('Content-Disposition: attachment; filename=' . basename($file));
> readfile($file);
> AND
>
> if (file_exists($new_file)) {
> header('Content-Description: File Transfer');
> header('Content-Type: application/octet-stream');
> header('Content-Disposition: attachment; filename='.basename($new_file
> ));
> header('Content-Transfer-Encoding: binary');
> header('Expires: 0');
> header('Cache-Control: must-revalidate, post-check=0, pre-check=0');
> header('Pragma: public');
> header('Content-Length: ' . filesize($new_file));
> ob_clean();
> flush();
> readfile($new_file);
> exit;
> }
>
> But everything I do just sends heiroglyphics to the screen instead of
giving
> the download box.
>



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Re: File Open Prompt?

am 29.08.2009 09:16:13 von Ashley Sheridan

On Sat, 2009-08-29 at 09:03 +0200, Ralph Deffke wrote:
> are u shure, u dont send anything out before u send the headers? even one
> space would be too much.
>
> ralph_deffke@yahoo.de
>
> "Dan Shirah" wrote in message
> news:a16da1ff0908281328k641ea332v25d887c4de5b347c@mail.gmail .com...
> > >
> > > You will need to add some headers to the page to popup the prompt, at
> least
> > > with
> > > these.
> > >
> > > $filename = 'somefile.tif';
> > > $filesize = filesize($filename);
> > >
> > > header('Content-Type: application/force-download');
> > > header('Content-disposition: attachement; filename=' . $filename);
> > > header('Content-length: ' . $filesize);
> > >
> > > Eric
> > >
> > >
> >
> > I don't know what I'm doing wrong. I've tried:
> >
> > header('Content-Description: File Transfer');
> > header('Content-Type: application/force-download');
> > header('Content-Length: ' . filesize($filename));
> > header('Content-Disposition: attachment; filename=' . basename($file));
> > readfile($file);
> > AND
> >
> > if (file_exists($new_file)) {
> > header('Content-Description: File Transfer');
> > header('Content-Type: application/octet-stream');
> > header('Content-Disposition: attachment; filename='.basename($new_file
> > ));
> > header('Content-Transfer-Encoding: binary');
> > header('Expires: 0');
> > header('Cache-Control: must-revalidate, post-check=0, pre-check=0');
> > header('Pragma: public');
> > header('Content-Length: ' . filesize($new_file));
> > ob_clean();
> > flush();
> > readfile($new_file);
> > exit;
> > }
> >
> > But everything I do just sends heiroglyphics to the screen instead of
> giving
> > the download box.
> >
>
>
>
Try putting all of that inside of a headers_sent(){} block. If nothing
is displayed, it means that you've already sent something to the
browser, so the headers have already been sent and the extra ones you
are sending do nothing. This sort of thing is shown in your error log
also.

If you still get the tif displayed as text, then are you sure that the
tif is valid?

Thanks,
Ash
http://www.ashleysheridan.co.uk




--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Re: File Open Prompt?

am 29.08.2009 10:04:38 von Ralph Deffke

even the .tif is valid or not, the file should be downloaded


"Ashley Sheridan" wrote in message
news:1251530173.27899.135.camel@localhost...
> On Sat, 2009-08-29 at 09:03 +0200, Ralph Deffke wrote:
> > are u shure, u dont send anything out before u send the headers? even
one
> > space would be too much.
> >
> > ralph_deffke@yahoo.de
> >
> > "Dan Shirah" wrote in message
> > news:a16da1ff0908281328k641ea332v25d887c4de5b347c@mail.gmail .com...
> > > >
> > > > You will need to add some headers to the page to popup the prompt,
at
> > least
> > > > with
> > > > these.
> > > >
> > > > $filename = 'somefile.tif';
> > > > $filesize = filesize($filename);
> > > >
> > > > header('Content-Type: application/force-download');
> > > > header('Content-disposition: attachement; filename=' . $filename);
> > > > header('Content-length: ' . $filesize);
> > > >
> > > > Eric
> > > >
> > > >
> > >
> > > I don't know what I'm doing wrong. I've tried:
> > >
> > > header('Content-Description: File Transfer');
> > > header('Content-Type: application/force-download');
> > > header('Content-Length: ' . filesize($filename));
> > > header('Content-Disposition: attachment; filename=' .
basename($file));
> > > readfile($file);
> > > AND
> > >
> > > if (file_exists($new_file)) {
> > > header('Content-Description: File Transfer');
> > > header('Content-Type: application/octet-stream');
> > > header('Content-Disposition: attachment;
filename='.basename($new_file
> > > ));
> > > header('Content-Transfer-Encoding: binary');
> > > header('Expires: 0');
> > > header('Cache-Control: must-revalidate, post-check=0,
pre-check=0');
> > > header('Pragma: public');
> > > header('Content-Length: ' . filesize($new_file));
> > > ob_clean();
> > > flush();
> > > readfile($new_file);
> > > exit;
> > > }
> > >
> > > But everything I do just sends heiroglyphics to the screen instead of
> > giving
> > > the download box.
> > >
> >
> >
> >
> Try putting all of that inside of a headers_sent(){} block. If nothing
> is displayed, it means that you've already sent something to the
> browser, so the headers have already been sent and the extra ones you
> are sending do nothing. This sort of thing is shown in your error log
> also.
>
> If you still get the tif displayed as text, then are you sure that the
> tif is valid?
>
> Thanks,
> Ash
> http://www.ashleysheridan.co.uk
>
>
>



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Re: File Open Prompt?

am 29.08.2009 11:01:36 von Eric Lee

DQotLS0tLSBPcmlnaW5hbCBNZXNzYWdlIC0tLS0tIA0KRnJvbTogIkFzaGxl eSBTaGVyaWRhbiIg
PGFzaEBhc2hsZXlzaGVyaWRhbi5jby51az4NClRvOiAiUmFscGggRGVmZmtl IiA8cmFscGhfZGVm
ZmtlQHlhaG9vLmRlPg0KQ2M6IDxwaHAtZ2VuZXJhbEBsaXN0cy5waHAubmV0 Pg0KU2VudDogU2F0
dXJkYXksIEF1Z3VzdCAyOSwgMjAwOSAzOjE2IFBNDQpTdWJqZWN0OiBSZTog W1BIUF0gRmlsZSBP
cGVuIFByb21wdD8NCg0KDQo+IE9uIFNhdCwgMjAwOS0wOC0yOSBhdCAwOTow MyArMDIwMCwgUmFs
cGggRGVmZmtlIHdyb3RlOg0KPj4gYXJlIHUgc2h1cmUsIHUgZG9udCBzZW5k IGFueXRoaW5nIG91
dCBiZWZvcmUgdSBzZW5kIHRoZSBoZWFkZXJzPyBldmVuIG9uZQ0KPj4gc3Bh Y2Ugd291bGQgYmUg
dG9vIG11Y2guDQo+PiANCj4+IHJhbHBoX2RlZmZrZUB5YWhvby5kZQ0KPj4g DQo+PiAiRGFuIFNo
aXJhaCIgPG1yc3F1YXNoMkBnbWFpbC5jb20+IHdyb3RlIGluIG1lc3NhZ2UN Cj4+IG5ld3M6YTE2
ZGExZmYwOTA4MjgxMzI4azY0MWVhMzMydjI1ZDg4N2M0ZGU1YjM0N2NAbWFp bC5nbWFpbC5jb20u
Li4NCj4+ID4gPg0KPj4gPiA+IFlvdSB3aWxsIG5lZWQgdG8gYWR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