note 44022 deleted from features.file-upload by tomsommer
| From: | tomsommer@php.net | Date: | Mon, 12 Jul 2004 21:57:20 +0000 |
| Subject: | note 44022 deleted from features.file-upload by tomsommer | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-73123@lists.php.net to get a copy of this message | ||
Note Submitter: farphel
----
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...