note 73443 added to features.file-upload.errors
| From: | webattlapasdottiddottlv at osu1 dot php dot net | Date: | Fri, 23 Feb 2007 13:49:48 +0000 |
| Subject: | note 73443 added to features.file-upload.errors | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-123766@lists.php.net to get a copy of this message | ||
1. And what about multiple file upload ? - If there is an UPLOAD_ERR_INI_SIZE error with multiple
files - we can
t detect it normaly ? ...because that we have an array, but this error returns
null and cant use foreach. So, by having a multiple upload, we cant normaly inform user
about that.. we can just detect, that sizeof($_FILES["file"]["error"]) == 0 ,
but we cant actualy return an error code. The max_file_size also is not an exit, becouse it
refers on each file seperatly, but upload_max_filesize directive in php.ini refers to all files
together. So, for example, if upload_max_filesize=8Mb , max_file_size = 7Mb and one of my files is
6.5Mb and other is 5Mb, it exeeds the upload_max_filesize - cant return an error, becouse we don`t
know where to get that error.
Unfortunately we cannot get the file sizes on client side, even AJAX normaly can`t do that.
2. If in file field we paste something, like, D:\whatever , then there also isn`t an error to return
in spite of that no such file at all.
----
Server IP: 81.94.227.69
Probable Submitter: 87.110.40.173
----
Manual Page -- http://www.php.net/manual/en/features.file-upload.errors.php
Edit -- https://master.php.net/note/edit/73443
Del: integrated -- https://master.php.net/note/delete/73443/integrated
Del: useless -- https://master.php.net/note/delete/73443/useless
Del: bad code -- https://master.php.net/note/delete/73443/bad+code
Del: spam -- https://master.php.net/note/delete/73443/spam
Del: non-english -- https://master.php.net/note/delete/73443/non-english
Del: in docs -- https://master.php.net/note/delete/73443/in+docs
Del: other reasons-- https://master.php.net/note/delete/73443
Reject -- https://master.php.net/note/reject/73443
Search -- https://master.php.net/manage/user-notes.php