enctype="multipart/form-data" not working

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
madan koshti
Forum Commoner
Posts: 50
Joined: Fri Jun 06, 2008 4:25 am

enctype="multipart/form-data" not working

Post 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 :(.
User avatar
greyhoundcode
Forum Regular
Posts: 613
Joined: Mon Feb 11, 2008 4:22 am

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

Post 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).
Post Reply