[pmwiki-users] Indirect file dowload

Mr Wappy mrwappy at yahoo.co.uk
Mon Mar 20 14:11:27 CST 2006


Hi

Found the problem in case others are interested.

There is a bug in PHP 5.0.4 readfile() that causes it
to halt output at about 1.9 MB, hence the problem I
experience. 

Updating to a later release of PHP resolves the
problem.

Rgds

Adrian


--- "Patrick R. Michaud" <pmichaud at pobox.com> wrote:

> On Fri, Mar 17, 2006 at 01:19:32PM +0000, Mr Wappy
> wrote:
> > I am running pmwiki 2.0.12 and have just
> identified a
> > problem associated with downloading a file.  I
> have
> > uploaded the file (and checked) using attach files
> > e.g. Attach:file.exe and then download it.  I have
> set
> > $EnableDirectDownload=0 and although it
> successfully
> > identifies the file and a download is performed
> the
> > file is truncated.
> > 
> > The original file is about 3892KB but the download
> is
> > repeated 1954KB (remarkable near half the size!)
> 
> Is the file the correct size in the uploads
> directory, or
> is it truncated there also?
> 
> (I seem to recall that PHP can have trouble reading
> files
> over a certain size, but I'll have to check into
> this.)
> 
> Pm
> 



		
___________________________________________________________ 
Win a BlackBerry device from O2 with Yahoo!. Enter now. http://www.yahoo.co.uk/blackberry




More information about the pmwiki-users mailing list