enctype="multipart/form-data"

Status
Not open for further replies.

xxsmith9

New Member
Messages
7
Reaction score
0
Points
0
Hi, am trying to improve my web skills. I have put a samll site on to test uplaoding via php. This is to test for valid file types etc. in my web page I have a form

<form enctype="multipart/form-data" action="picfiletransport3.php" method="post">
<input type="hidden" name="MAX_FILE_SIZE" value="10000000" />
Choose a file to upload: <input name="uploaded_file" type="file" />
<input type="submit" value="Upload" />
</form>

whenever I click the submit button I get this

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, webmaster@dps.x10hosting.com and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
If I remove the multipart/form-data part of the code it works fine (as in it executes the php code.


Can anyone tell me what i am doing wrong?


Cheers
 

Synkc

Active Member
Messages
1,765
Reaction score
0
Points
36
Log into your cPanel and check your site's error log; paste the top few logs here so we can help find out what could be causing the problem.
 
Last edited:

xxsmith9

New Member
Messages
7
Reaction score
0
Points
0
[Fri Mar 28 07:30:01 2008] [error] [client 90.199.215.225] File does not exist: /home/xxsmith9/public_html/500.shtml, referer: http://dps.x10hosting.com/picupload2.php

seems strange as all it does is call picfiletransport3.php which i know exists. I have removed all the code and replaced it with a simple echo to let me know it found it.
 

Fedlerner

Former Adm & Team Manager
Community Support
Messages
12,934
Reaction score
6
Points
38
If you need further assistance feel free to re-open the thread.
 
Status
Not open for further replies.
Top