Forum Moderators: coopster

Message Too Old, No Replies

PHP file upload

configuration issue?

         

dingman

2:45 am on May 23, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



OK, I'm writing a web app that needs to process an uploaded file. Unfortunately, I can't seem to get more than the local file name from the uploading system. The file name gets set in an appropriate place, but $_FILES and $HTTP_POST_FILES are both empty. File size and browsers seem to ahve nothing to do with the issue.

I double-checked the following php.ini directives:
memory_limit = 100M
post_max_size = 75M
upload_max_filesize = 75M
file_uploads = On

and the code of my test form is:


<html>
<head>
<title>php form test</title>
</head>
<body>
<pre>
<?php
global $HTTP_POST_FILES;
var_dump($_POST);
var_dump($_FILES);
var_dump($HTTP_POST_FILES);
?>
</pre>
<form action="" method="post">
<input type="file" name="uploaded_file" />
<input type="submit" />
</form>
</body>
</html>

dingman

3:07 am on May 23, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



hmm... I coulda sworn I'd already tried explicitly setting the enctype attribute to no effect, but I think that's all I changed this last time, and now it works...