Jump to content

Save file dialogue interaction - how to verify ?!


shlomikalfa

Recommended Posts

hi,

I would like to know how can i verify that the user have clicked "Save As/Open" on that dialogue in order to know if i should increment my counter for that file download....

 

How do i do that ?! [file downloading incrementation].

header("Content-type: application/octet-stream");
header("Content-Disposition: attachment; filename=\"SomeFile.txt\"");
flush();
$data = "This is sent";
$ret = printf("%s",$data);
if ($ret > 0){
.... MY funcs......
}

 

The above seems to always send the date.... no matter what you click on the dialogue ....

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.