Page 1 of 1

enctype="multipart/form-data" not working

Posted: Sat Aug 30, 2008 1:13 am
by madan koshti
Hello Everyone,

Knowingly that this topic may not be proper here, but I have posted this in phpCode topic..

I have problem with enctype="multipart/form-data" .

If I remove this line,form submits well,but with 'enctype="multipart/form-data" ' it doesn't.

is there any server issue ??help me .

System I am working on php5,linux.

<form id="admin_edit_form" name="admin_edit_form" method="post" enctype="multipart/form-data" action="/mc/testPage">

But On my localhost(windows/php5) it works fine but on server it doesn't :(.

Re: enctype="multipart/form-data" not working

Posted: Sat Aug 30, 2008 11:11 am
by greyhoundcode
Your filepath /mc/testPage may point to the correct file on your local host, but you might want to double check that this is also the case on your server. If in doubt, alter the uploaded code to an absolute file reference (such as http://domain.net/code/mc/testPage).