|
Posted by Hendri Adriaens on 02/23/07 17:09
> Well, not really, somewhat slower, but mainly somewhat headvier on the
> server.
Ok, thanks. So, a chunksize of 1 byte should be optimal for my purpose. I
will
test the load differences for the server.
> Nope, it's in the browser itself, the cancelling of a download isn't a
> HTTP feature. You can add a dialogue on the page, or possibly something
> with javascript, it will not help: the browser dialogue will still come
> into play in the end.
Bad luck.
> There may be a possibility to load the file into a hidden frame or
> something, and to check that with javascript. This will not help your php
> script, but javascript could fire a request on succes, ans you only delete
> the file on that second request. It would mean nothing get's deleted with
> javascript disabled, and I'm a little bit fuzzy on the details...
Ok, no problem, me neither.
> Then again: I do not know what the exact purpose of you script is in
> general, maybe it's OK to keep the small files and delete them
> periodically after a check with filemtime()?
I just wanted to offer users of a sharing environment to remove the file
from
the server automatically after the file was downloaded. So a period clean up
is not really what I want. I don't want to remove files that shouldn't be
removed.
But thanks for your help and answers! But if you find any other ideas than
chunksize=1, I will be more than happy to test them :)
Best regards,
-Hendri.
Navigation:
[Reply to this message]
|