Re: [PHP] file upload size, before upload complete

2001-08-30 Thread
From: christopher johnson <[EMAIL PROTECTED]> Date: Thu, Aug 30, 2001 at 12:47:00PM -0500 Message-ID: <[EMAIL PROTECTED]> Subject: [PHP] file upload size, before upload complete > Can anyone think of a way to determine the file size of what the user is > uploading before

RE: [PHP] file upload size, before upload complete

2001-08-30 Thread Joseph Bannon
Yes, I use to do this with my site. # The original name of the file on the client machine. $filename = $HTTP_POST_FILES['file']['name']; # The mime type of the file, if the browser provided this information. An example would be "image/gif". $filetype = $HTTP_POST_FILES['file']['type']; # The

[PHP] file upload size, before upload complete

2001-08-30 Thread christopher johnson
Can anyone think of a way to determine the file size of what the user is uploading before it has been fully uploaded? I know because of security restrictions javascript can't do this, but is it possible in php? I'm trying to make an upload progress bar, it doesn't have to be exact, but a close app