|
Posted by Rik on 02/23/07 16:07
On Fri, 23 Feb 2007 16:56:07 +0100, Hendri Adriaens
<spotjeREMOVE@THISgmail.com> wrote:
>> Silly me.... replace user_aborted() with connection_aborted()....
>
> Sorry, but now the code following readfile_chunked always gets executed
> for
> small files, even if cancel was clicked. So it's the same as the original
> situation, unfortunately.
Hmmmz, another solution could be, if these problems only occur with small
files, to make the chunk size drastically maybe that helps...
Then again:
If the user hits cancel, but the file is already downloaded (most browsers
start immediately), there's no way for php to distinguish that from an
actual download. The connection is already over & done. So if the file is
received earlier then the user has hit the cancel button, nothing can be
done.
--
Rik Wasmus
Navigation:
[Reply to this message]
|