fileReference upload IOError

I need to let people upload a .pdf document
there are other places on my site that allow people to upload .jpg which are usualy a fairly small file size.
Well I need them to be able to upload a .pdf which is considerably larger.
The problem is that every time I atempt an upload, it gets to about 65000 bytes and then results in an IOError.
Any suggestions?