Note that there are some explanatory texts on larger screens.

plurals
  1. POIIS7 is losing the authenticated user for cffileupload (CF10)
    primarykey
    data
    text
    <p>On one of our intranet pages, I'm using <code>cffileupload</code> to upload multiple photos:</p> <pre><code>&lt;cffileupload extensionfilter=".jpg,.jpeg,.png,.gif" url="/submissions/photo_gallery.cfm" onerror="errorissue" width="600" addbuttonlabel="Browse..." maxuploadsize="100"&gt; </code></pre> <p>The url for this tag points back to the same page where I process the images:</p> <pre><code>&lt;!--- Define the upload path ---&gt; &lt;cfset upload_path = "C:\websites\images\photo_gallery\"&gt; &lt;!--- Upload all the files ---&gt; &lt;cffile action="upload" destination="#upload_path#" nameconflict="makeunique" result="uploaded_file"&gt; </code></pre> <p>In IE and Chrome, this works. In Firefox, I get a 401 error. It appears to be related to how the browsers authenticate. IE and Chrome use Windows authentication while Firefox prompts when entering the site for username/password. Nothing shows up in the Coldfusion logs, but the IIS logs show this (with the IP x'd out):</p> <blockquote> <p>2013-05-09 19:16:07 xxx.xxx.xxx.xxx POST /submissions/photo_gallery.cfm CFID=5546&amp;CFTOKEN=75080018 80 - 172.28.30.99 Shockwave+Flash 401 2 5 0</p> </blockquote> <p>The previous line in the log is from loading the page. As you can see, my username is showing up in this line (edited for security):</p> <blockquote> <p>2013-05-09 19:16:07 xxx.xxx.xxx.xxx GET /includes/js/shared.js - 80 DOMAIN\username xxx.xxx.xxx.xxx Mozilla/5.0+(Windows+NT+6.1;+WOW64;+rv:20.0)+Gecko/20100101+Firefox/20.0 304 0 0 218</p> </blockquote> <p>So, cffileupload seems to be losing my username. However, the session.urltoken in the cffileupload url is the same as it is in on the page with the multiple file uploader (the calling page). So, you'd think the authentication would stick.</p> <p>Also, I can get it to work in Firefox when I go into IIS7 and enable Anonymous Authentication on the Jakarta virtual directory (and disable Windows Authentication on the same). But, this is not a usable solution.</p> <p>Can anyone suggest another solution?</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload