Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

FileReferenceList - No Cookies or NTLM Auth?!

Posted on 2007-04-11
1
Medium Priority
?
624 Views
Last Modified: 2012-08-14
Im using flash.net.FileReferenceList within my Flash 8 object to enable multiple file uploading from within my .ASPX web page. My browser is Firefox 2.0.0.3 under Windows 2003 Server. The problem Im having is when the upload is submitted to my server (the same server the webpage and flash object came from) apparently Adobe forgot to include the browser's cookies when POSTing to the server as well as the NTLM Authentication header, all of which is sent by the browser for standard POST requests outside the flash object.

Is there ANY way i can resolve this apparent bug with flash? Is this problem resolved in Flash 9? I need for flash to submit the browser's cookie and NTLM Auth info back to my server, the way it normally should.

Tx
0
Comment
Question by:aniston
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 4

Accepted Solution

by:
Blixtsystems earned 500 total points
ID: 18892788
The only way I know to work around it is to make a JS function to retrieve the cookie, and then grab the cookie in to Flash to append it to the upload URL.

So...in you HTML page put JS to get the cookie...something like this:

function getCookie( name ) {
var start = document.cookie.indexOf( name + "=" );
var len = start + name.length + 1;
if ( ( !start ) &&
( name != document.cookie.substring( 0, name.length ) ) )
{
return null;
}
if ( start == -1 ) return null;
var end = document.cookie.indexOf( ";", len );
if ( end == -1 ) end = document.cookie.length;
return unescape( document.cookie.substring( len, end ) );
}
      
In your flash:
import flash.external.*;
var cookie:String = ExternalInterface.call("getCookie", "cookieName").toString();

Then in your upload function:
my_fr.upload("upload.aspx?c="+cookie);

When it comes to NTLM Auth I don't have any ideas :(
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction This article is primarily concerned with ActionScript 3 and generally specific to AVM2.  Most suggestions would apply to ActionScript 2 as well, and I've noted those tips that differ between AS2 and AS3. With the advent of ActionS…
Here are some practices and techniques that can be adopted into your Flash/Flex application development process. Note: Not all "performance tips" provide an immediately-recognizable benefit.   This article does not include timing validation data,…
In this tutorial viewers will learn how to create a basic shape tween animation in Flash including shape hints for smooth animation Open a new document in Flash: Draw a shape: Select another frame (how long you want the tween to be): Right click and…
The goal of the tutorial is to teach the user how to select the video input device. Make sure you have an input device that in connected and work and recognized by Adobe Flash Media Live Encoder and select it in the “video input” menu.

604 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question