tracker issue : CF-4015239

select a category, or use search below
(searches all categories and all time range)
Title:

File upload using cffile accept doesn't work for .xls file

| View in Tracker

Status/Resolution/Reason: Closed/Fixed/

Reporter/Name(from Bugbase): Shu Bin / Shu Bin (Shu Bin)

Created: 07/01/2015

Components: CFForm

Versions: 10.0

Failure Type: Non Functioning

Found In Build/Fixed In Build: Final /

Priority/Frequency: Normal / All users will encounter

Locale/System: English / Linux RH Enterprise 6

Vote Count: 0

Problem Description:
   <cffile action="upload" filefield="file" destination="/tmp" nameconflict="overwrite" accept="application/vnd.ms-excel">
   uploading .xls will generating an error

Steps to Reproduce:

<form enctype="multipart/form-data" method="post">
<input type="file" name="file">
<input name="submit" type="submit">
</form>

<cfif structKeyExists(form, "submit")>

   <cffile action="upload" filefield="file" destination="/tmp" nameconflict="overwrite" accept="application/vnd.ms-excel">
   <cfdump var="#cffile#">

</cfif>

upload .xls file

Actual Result:

The MIME type or the Extension of the uploaded file application/msword was not accepted by the server.

Only files of type application/vnd.ms-excel can be uploaded. Verify that you are uploading a file of the appropriate type.

Expected Result:

file upload

Any Workarounds:

not using "accept" option

----------------------------- Additional Watson Details -----------------------------

Watson Bug ID:	4015239

External Customer Info:
External Company:  
External Customer Name: Shu
External Customer Email:  
External Test Config: My Hardware and Environment details:

Server ColdFusion 10 Enterprise on RedHat 6

Client Windows 7, Chrome

Attachments:

Comments: