<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:clearspace="http://www.jivesoftware.com/xmlns/jive/rss" version="2.0">
  <channel>
    <title>Adobe Community: Message List -  cffile</title>
    <link>https://forums.adobe.com/community/coldfusion/documentation?view=discussions</link>
    <description>Most recent forum messages</description>
    <language>en</language>
    <pubDate>Mon, 14 Jan 2013 19:33:43 GMT</pubDate>
    <generator>Jive Engage 7.0.0.1  (http://jivesoftware.com/products/)</generator>
    <dc:date>2013-01-14T19:33:43Z</dc:date>
    <dc:language>en</dc:language>
    <item>
      <title>Re:  cffile</title>
      <link>https://forums.adobe.com/message/4992995?tstart=0#4992995</link>
      <description>&lt;!-- [DocumentBodyStart:9cc14c5a-a1a3-4be8-82d9-0415d7512f0b] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;Charlie,&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt; &amp;nbsp;&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;I tried text as the MIME type but not HTML.&amp;nbsp; I realize that strict was added in CF10 because I'm having to modify the code we used in CF 9 where I used accept="text/&lt;strong&gt;, image/&lt;/strong&gt;, application/*".&amp;nbsp; Perhaps I'm wrong about strict defaulting to true but when I leave it out altogether or include strict="true" in my cffile tag and then try and use accept=".cfm" (which works when I include strict="false" in the cffile tag) I get this error: &lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;When the value of the attribute STRICT is TRUE, it requires valid MIME types in the attribute(s): ACCEPT. &lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;The error occurred in C:/inetpub/wwwroot/sonisweb26bugfix/upload_rpt.cfm: line 42&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;40 :&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt; &amp;nbsp;&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;As you can see I do not explicitly set strict="true" in my code but the error clearly indicates that CF thinks STRICT is TRUE.&amp;nbsp; Note: this is another upload function for uploading CFR files, not CFMs.&amp;nbsp; I will need to determine what MIME type CFRs are, too.&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:9cc14c5a-a1a3-4be8-82d9-0415d7512f0b] --&gt;&lt;img src='/beacon?t=1415921568238' /&gt;</description>
      <pubDate>Mon, 14 Jan 2013 19:33:43 GMT</pubDate>
      <author>forums_noreply@adobe.com</author>
      <guid>https://forums.adobe.com/message/4992995?tstart=0#4992995</guid>
      <dc:date>2013-01-14T19:33:43Z</dc:date>
      <clearspace:dateToText>1 year 10 months ago</clearspace:dateToText>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>Re:  cffile</title>
      <link>https://forums.adobe.com/message/4992730?tstart=0#4992730</link>
      <description>&lt;!-- [DocumentBodyStart:021e86b2-447f-4c39-9b9f-9f0a74465c95] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;As a followup, I just noticed that this page does in fact indicate that "The default value of strict is false", for what it's worth. But hope the last reply more directly answers your question, Jim.&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:021e86b2-447f-4c39-9b9f-9f0a74465c95] --&gt;</description>
      <pubDate>Mon, 14 Jan 2013 18:25:33 GMT</pubDate>
      <author>forums_noreply@adobe.com</author>
      <guid>https://forums.adobe.com/message/4992730?tstart=0#4992730</guid>
      <dc:date>2013-01-14T18:25:33Z</dc:date>
      <clearspace:dateToText>1 year 10 months ago</clearspace:dateToText>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>Re:  cffile</title>
      <link>https://forums.adobe.com/message/4992711?tstart=0#4992711</link>
      <description>&lt;!-- [DocumentBodyStart:ee4ccdd1-26d5-4890-a227-080d898eb25b] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;@jsidway (Jim?), I really don&amp;#8217;t think that the default of STRICT was changed to true. Indeed, to be clear, STRICT was only added in 10, and for compatibility sake I&amp;#8217;m nearly positive it defaults to false. I just noticed that the &lt;a class="jive-link-external-small" href="http://help.adobe.com/en_US/ColdFusion/10.0/CFMLRef/WSc3ff6d0ea77859461172e0811cbec22c24-738f.html" rel="nofollow"&gt;cffile upload page&lt;/a&gt; in the CFML reference makes no mention of that, so I will go add a comment there. (I&amp;#8217;m not at the moment able to setup a test myself in answering your question here. Am just sharing some thoughts if they may help.)&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;As for your need, of course some would caution against uploading CFMs for security sake, but hey the whole purpose of the strict is to increase security so that if you do allow some type, at least you make sure that the file IS only of that type (according to its contents, which the STRICT will check), and not some other type.&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;So as for the mime type for CFM files, well, I&amp;#8217;d propose that since they&amp;#8217;re just text files and mostly like HTML files, then you just need the mimetype for HTML files. Have you tried text/html?&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;/charlie&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;PS I notice that you&amp;#8217;re asking here on the main page for CFFILE, rather than that &lt;a class="jive-link-external-small" href="http://help.adobe.com/en_US/ColdFusion/10.0/CFMLRef/WSc3ff6d0ea77859461172e0811cbec22c24-738f.html" rel="nofollow"&gt;CFFILE upload page&lt;/a&gt;. I&amp;#8217;d think that would have been the better place for this, though at this point I realize it&amp;#8217;s too late. &lt;span aria-label="Happy" class="emoticon-inline emoticon_happy" style="height:16px;width:16px;"&gt;&lt;/span&gt;&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:ee4ccdd1-26d5-4890-a227-080d898eb25b] --&gt;</description>
      <pubDate>Mon, 14 Jan 2013 18:20:21 GMT</pubDate>
      <author>forums_noreply@adobe.com</author>
      <guid>https://forums.adobe.com/message/4992711?tstart=0#4992711</guid>
      <dc:date>2013-01-14T18:20:21Z</dc:date>
      <clearspace:dateToText>1 year 10 months ago</clearspace:dateToText>
      <clearspace:replyCount>2</clearspace:replyCount>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>Re:  cffile</title>
      <link>https://forums.adobe.com/message/4992529?tstart=0#4992529</link>
      <description>&lt;!-- [DocumentBodyStart:73ad3fd8-357c-4268-9d34-2959237bea4a] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;It appears that since this page was written that the default value of the strict attribute was changed to 'true'.&amp;nbsp; I would like to configure a file upload to accept .cfm files and enforce the strict attribute but I cannot figure out what MIME type to use.&amp;nbsp; With strict = false I can upload .cfm files with this code:&amp;nbsp; but if I set strict="true" I can't get the upload to work with accept="text/.cfm" or accept="application/.cfm" or anything else that I try as MIME type designation.&amp;nbsp; I really don't want someone to be able to disguise an exe or other non-cfm file as a cfm.&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:73ad3fd8-357c-4268-9d34-2959237bea4a] --&gt;</description>
      <pubDate>Mon, 14 Jan 2013 17:22:39 GMT</pubDate>
      <author>forums_noreply@adobe.com</author>
      <guid>https://forums.adobe.com/message/4992529?tstart=0#4992529</guid>
      <dc:date>2013-01-14T17:22:39Z</dc:date>
      <clearspace:dateToText>1 year 10 months ago</clearspace:dateToText>
      <clearspace:replyCount>3</clearspace:replyCount>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>Re:  cffile</title>
      <link>https://forums.adobe.com/message/4417160?tstart=0#4417160</link>
      <description>&lt;!-- [DocumentBodyStart:8c81b84b-7767-40af-a2e2-7ec2a1f5a27f] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;History should add: Support for HTML 5 multifile input field in fileUploadAll and Form scope&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;example should be updated to demo this.&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:8c81b84b-7767-40af-a2e2-7ec2a1f5a27f] --&gt;</description>
      <pubDate>Thu, 17 May 2012 20:03:21 GMT</pubDate>
      <author>forums_noreply@adobe.com</author>
      <guid>https://forums.adobe.com/message/4417160?tstart=0#4417160</guid>
      <dc:date>2012-05-17T20:03:21Z</dc:date>
      <clearspace:dateToText>2 years 6 months ago</clearspace:dateToText>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>cffile</title>
      <link>https://forums.adobe.com/message/4417159?tstart=0#4417159</link>
      <description>&lt;!-- [DocumentBodyStart:9332e3c6-fa82-4b0c-b10d-5f968482bc48] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;&lt;span&gt;This question was posted in response to the following article: &lt;/span&gt;&lt;a class="jive-link-external-small" href="http://help.adobe.com/en_US/ColdFusion/10.0/CFMLRef/WSc3ff6d0ea77859461172e0811cbec22c24-7fa1.html" rel="nofollow"&gt;http://help.adobe.com/en_US/ColdFusion/10.0/CFMLRef/WSc3ff6d0ea77859461172e0811cbec22c24-7 fa1.html&lt;/a&gt;&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:9332e3c6-fa82-4b0c-b10d-5f968482bc48] --&gt;</description>
      <pubDate>Thu, 17 May 2012 20:03:20 GMT</pubDate>
      <author>forums_noreply@adobe.com</author>
      <guid>https://forums.adobe.com/message/4417159?tstart=0#4417159</guid>
      <dc:date>2012-05-17T20:03:20Z</dc:date>
      <clearspace:dateToText>2 years 6 months ago</clearspace:dateToText>
      <clearspace:replyCount>5</clearspace:replyCount>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
  </channel>
</rss>

