note 44022 added to features.file-upload
| From: | farphel at rn2 dot php dot net | Date: | Mon, 12 Jul 2004 21:29:07 +0000 |
| Subject: | note 44022 added to features.file-upload | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-73122@lists.php.net to get a copy of this message | ||
Gee, it sure would be nice if you could actually use the values from ini_get/get_cfg_var for
MAX_FILE_SIZE. From the example above, you could write...
<form enctype="multipart/form-data" action="_URL_"
method="post">
<input type="hidden" name="MAX_FILE_SIZE" value="<? print
ini_get('upload_max_filesize');?>" />
Send this file: <input name="userfile" type="file" />
<input type="submit" value="Send File" />
</form>
But no.... ini_get() returns something stupid like '2M' even though according to the
documentation, it's supposed to return an "integer"!
Well, I suppose the upshot is, at least I'm not coding VBscript/ASP/.NET crap...
----
Manual Page -- http://www.php.net/manual/en/features.file-upload.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+44022
Delete -- http://master.php.net/manage/user-notes.php?action=delete+44022&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+44022&report=yes
Search -- http://master.php.net/manage/user-notes.php