Posted by Andy Hassall on 10/19/58 11:27
On 23 Sep 2005 21:51:02 -0700, nwheavyw8@gmail.com wrote:
>I can't seem to be able to
>find a way to split the file purely in PHP while it is in the middle of
>uploading using the move_uploaded_file function.
You can't; PHP doesn't start running code until the file upload has finished.
I recall there being a patch to support upload progress displays (through
partial output and buffering and/or Javascript probably) but IIRC these
required a patch to PHP itself to modify how it receives file uploads.
Splitting it server-side is easy enough but doesn't sound it's what you're
after. Splitting it client-side with just (portable) Javascript doesn't sound
possible given how restricted it is (and rightly so) in accessing the user's
machine.
--
Andy Hassall :: andy@andyh.co.uk :: http://www.andyh.co.uk
http://www.andyhsoftware.co.uk/space :: disk and FTP usage analysis tool
Navigation:
[Reply to this message]
|