Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I found this question while trying to find the answer myself. The solution was rather simple.</p> <p>Based on the <a href="http://bugs.adobe.com/jira/browse/FP-201" rel="nofollow noreferrer">flash player bug</a> that others have linked, and the comments on that page, I decided to append session identifiers to my upload URL and give it a shot. It really was that easy!</p> <p>To make it work, I started by adding a flashVar parameter called sessionParams. This allowed me to pass any string I want in to the flash player as my session identifier, and it will later get appended to the URL used to upload.</p> <pre><code>//sessionParams - resolves firefox upload bug public var sessionParams:String = ""; //... public function initApp():void{ sessionParams = Application.application.parameters.sessionParams; } </code></pre> <p>In my case, I'm on ColdFusion with java sessions enabled, so my <code>sessionParams</code> are setup like the following before being passed into the flash player:</p> <pre><code>&lt;cfset flashVars = "sessionParams=#urlEncodedFormat('jsessionid=' &amp; session.sessionid)#" /&gt; </code></pre> <p>Don't forget to escape special characters like =,&amp;, etc (which I've done with urlEncodedFormat), so that they are treated as part of the value of the "sessionParams" parameter, and not breakpoints to indicate other parameters. You're embedding future-URL information in the current URL.</p> <p>Then, use the sessionParams value in your upload code. Here's a snippet of how I set mine up:</p> <pre><code>// Set Up URLRequest _uploadURL = new URLRequest; _uploadURL.url = _url + "?" + _sessionParams; _uploadURL.method = "GET"; _uploadURL.data = _variables; _uploadURL.contentType = "multipart/form-data"; </code></pre> <p>The variable names are different (but similar) because this is part of a reusable class.</p> <p>Hopefully that helps you. If not, let me know and I'll try to provide more code or explanation to help you out.</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.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      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