Hi folks,
I have a internal upload bit for handling pdf uploads and it's been working
without fail for the past couple of years and the all of the sudden I am
getting this error on upload:
The MIME type of the uploaded file text/xm was not accepted by the server.
Only files of type application/pdf can be uploaded.
Verify that you are uploading a file of the appropriate type. The error
occurred in C:/Inetpub/wwwroot/www/reviews/actUpload.cfm: line 23
Called from C:/Inetpub/wwwroot/www/reviews/fbx_Switch.cfm: line 40
Called from C:/Inetpub/wwwroot/www/fbx_fusebox30_CF50.cfm: line 273
Called from C:/Inetpub/wwwroot/www/fbx_fusebox30_CF50.cfm: line 33
Called from C:/Inetpub/wwwroot/www/fbx_fusebox30_CF50.cfm: line 1
Called from C:/Inetpub/wwwroot/www/index.cfm: line 17
21 : filefield="thisfile"
22 : destination="C:\inetpub\wwwroot\www\reviews\pdf"
23 : nameconflict="MAKEUNIQUE" accept="application/pdf" />
I've changed nothing in the code I've been using:
<cffile action="UPLOAD"
filefield="thisfile"
destination="C:\inetpub\wwwroot\www\reviews\pdf"
nameconflict="MAKEUNIQUE" accept="application/pdf" />
<cfdirectory action="list" name="lastadded"
directory="C:\inetpub\wwwroot\www\reviews\pdf" />
And I've checked the file outside of this and it is in fact a pdf yet the
server is seeing it as "text/xm" ??
Here's the form:
<form name="packet" action="#self#?fuseaction=reviews.gotoupload" method="post"
enctype="multipart/form-data" onSubmit="return validateForm();">
Name: <span style="font-size:9px;">(first name & last name)</span> <input
type="text" name="name" size="20" maxlength="100" value="" />
<select name="chair_id" size="1">
<option value="none" selected>Select A Chair</option>
<cfloop query="getProfessors">
<option value="#ID#">#last_name#,#first_name#</option>
</cfloop>
</select>
<input type="submit" name="submit" value="Next" />
</form>
Any ideas? TIA
Bob
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive:
http://www.houseoffusion.com/groups/cf-newbie/message.cfm/messageid:5781
Subscription: http://www.houseoffusion.com/groups/cf-newbie/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-newbie/unsubscribe.cfm