Hi,
I'd like to know if it's possible in some kind of way to 'spoof' the filesize, the content-lenght or the content-size or something else.
I'm developing a WAP application where people can download bitmap images and store them on their phone (if they have some disk space like a multimedia-card).
But the problem that has arised is that my test-cellphone (siemens SL-45) doens't seem to accept files any larger than 1600 bytes. And maybe other cell-phones will have the same problem.
When I send the Content-length header and I give it a length of 999 bytes, I get a file on my multimedia card that is exactly 999 bytes large.
The download does work, so that's not the problem.
When I don't send the content-length header at all I receive the error "File is too large".
Does someone know or has any suggestions how to tell the (client)browser that the server doesn't know the size of the file but the client should accept it and download the file ??
Or some workaround for serving up a file of 1600 bytes that is actually 12000 bytes, that's also stored on my phone as a 12000 bytes file ??
Thanks for your time and help
p.s. these are the header I'm currently sending
Header("Content-type: application/download\r\n");
header("Content-length: $filesize\r\n");
header("Content-disposition-type: attachment\r\n");
header ("Content-Disposition: attachment; filename=$file");