Wrox Home  
Search P2P Archive for: Go

  Return to Index  

pro_php thread: uploading broken


Message #1 by Paul <paul@d...> on Thu, 18 Jul 2002 02:04:21 -0400
Nikolai Devereaux wrote:

>>Has anyone been having aproblem with multipart/form-data file uploads?
>> The important question is, has anyone found a solution?
>>
>>I thought it was a problem that was caused by patching Apache.  However,
>>I didn't have a problem at home until I upgrading my version of PHP to
>>4.1.2.
>>
>Well, if you upgraded to php 4.1.2 from php < 4.1.0, then you might be
>having a problem with the switch to register_globals being off.
>
>Try accessing your form data through $_POST and your file variables through
>$_FILES.
>

I just fixed the upload problem.  In "/etc/php.ini" I changed 
"file_uploads = Off" to "file_uploads = On" and restarted Apache.  It 
was your e-mail that inspired me to look at /etc/php.ini today.  I'm 
both glad and disappointed that the solution was so easy.  And I 
understand it.  Until Apache was patched, the newer version of PHP was 
configured to protect against the file upload vulnerability.  It's all 
good now.  Thanks.


  Return to Index