Re: [PHP] Can I detect size of files which are too large to upload?

2004-06-18 Thread raditha dissanayake
Red Wingate wrote: Right, guess i saw some kind of JS that determined the size of the selected file and wrote it into an hidden field. Maybe you try it that way. Hi folks. I'm just tweaking the file manager portion of my CMS, and am wondering if there is any way I can identify the size of an uploa

Re: [PHP] Can I detect size of files which are too large to upload?

2004-06-18 Thread Marek Kilimajer
Red Wingate wrote --- napísal:: Right, guess i saw some kind of JS that determined the size of the selected file and wrote it into an hidden field. Maybe you try it that way. Maybe ActiveX, JS cannot do that. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.ne

Re: [PHP] Can I detect size of files which are too large to upload?

2004-06-18 Thread Red Wingate
Right, guess i saw some kind of JS that determined the size of the selected file and wrote it into an hidden field. Maybe you try it that way. -- red Marek Kilimajer wrote: Pablo Gosse wrote --- napísal:: Marek Kilimajer wrote: Pablo Gosse wrote --- napísal:: Hi folks. I'm just tweaking the file

Re: [PHP] Can I detect size of files which are too large to upload?

2004-06-18 Thread Marek Kilimajer
Pablo Gosse wrote --- napísal:: Marek Kilimajer wrote: Pablo Gosse wrote --- napísal:: Hi folks. I'm just tweaking the file manager portion of my CMS, and am wondering if there is any way I can identify the size of an uploaded file which exceeded the upload_max_filesize? I'd like to be able to te

RE: [PHP] Can I detect size of files which are too large to upload?

2004-06-18 Thread Pablo Gosse
Marek Kilimajer wrote: > Pablo Gosse wrote --- napísal:: >> Hi folks. I'm just tweaking the file manager portion of my CMS, and >> am wondering if there is any way I can identify the size of an >> uploaded file which exceeded the upload_max_filesize? I'd like to be >> able to tell the user the si

RE: [PHP] Can I detect size of files which are too large to upload?

2004-06-18 Thread Pablo Gosse
Ashwin Purohit wrote: > $userfile=$_FILES['userfile']['tmp_name']; > $userfile_error=$_FILES['userfile']['error']; > if ($userfile_error > 0) > {echo 'Problem: '; > switch($userfile_error) > {case 1: echo 'File exceeded upload maximum filesize'; break; case 2: > echo 'File exceeded maximum file siz

Re: [PHP] Can I detect size of files which are too large to upload?

2004-06-18 Thread Marek Kilimajer
Pablo Gosse wrote --- napísal:: Hi folks. I'm just tweaking the file manager portion of my CMS, and am wondering if there is any way I can identify the size of an uploaded file which exceeded the upload_max_filesize? I'd like to be able to tell the user the size of the file they tried to upload,

Re: [PHP] Can I detect size of files which are too large to upload?

2004-06-18 Thread Ashwin Purohit
Here's a professional explanation: http://de3.php.net/manual/en/features.file-upload.errors.php > On Fri, 18 Jun 2004 10:50:04 -0700, Pablo Gosse <[EMAIL PROTECTED]> wrote: > > > > Hi folks. I'm just tweaking the file manager portion of my CMS, and am > > wondering if there is any way I can iden

Re: [PHP] Can I detect size of files which are too large to upload?

2004-06-18 Thread Ashwin Purohit
$userfile=$_FILES['userfile']['tmp_name']; $userfile_error=$_FILES['userfile']['error']; if ($userfile_error > 0) {echo 'Problem: '; switch($userfile_error) {case 1: echo 'File exceeded upload maximum filesize'; break; case 2: echo 'File exceeded maximum file size'; break; case 3: echo 'File only