Re: File Upload uploading open file

2011-03-08 Thread Pete Freitag

Hi Don,

The mime type of the file is determined by the browser (client side), and
then sent in the HTTP request to upload the file. ColdFusion uses the same
mime type sent by the browser in cffile. So it sounds like the accept
attribute of cffile is causing this exception to be thrown.

Try adding this mime type to the cffile accept attribute list, and then make
sure you are validating the file extension of the uploaded file to be doc or
docx.


--
Pete Freitag - Adobe Community Professional
http://foundeo.com/ - ColdFusion Consulting  Products
http://petefreitag.com/ - My Blog
http://hackmycf.com - Is your ColdFusion Server Secure?


On Mon, Mar 7, 2011 at 11:50 AM, Don danfar...@hotmail.com wrote:


 Hi Folks =)

 Trying to upload a file ( word doc ) that is concurrently OPEN in the OS.

 Upon upload attempt via cffile coldfusion is seemingly returning a mime
 type error:

 The MIME type of the uploaded file application/octet-stream was not
 accepted by the server.

 is there a way to prevent (open) files from being uploaded?

 how would I ignore/bypass this error so as to actually upload the original
 file?

 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:342826
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


File Upload uploading open file

2011-03-07 Thread Don

Hi Folks =)

Trying to upload a file ( word doc ) that is concurrently OPEN in the OS.

Upon upload attempt via cffile coldfusion is seemingly returning a mime type 
error:

The MIME type of the uploaded file application/octet-stream was not accepted 
by the server.

is there a way to prevent (open) files from being uploaded?

how would I ignore/bypass this error so as to actually upload the original 
file? 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:342800
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm