<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><div>Make a JS function in the editor php wrapper which returns document cookie</div><div><br></div><div>Make a external Fs command call to this function in the wizard</div><div><br></div><div>Add the cookie to the URL sent via the upload script</div><div><br></div><div>In the php, get at this variable using $_REQUEST</div><div><br></div><div>rather than including config.php call session_start($_Request['cookie variable'])<br><br>Pgogy Webstuff - <a href="http://www.pgogywebstuff.com">http://www.pgogywebstuff.com</a><div>Makers of web things of a fair to middling quality</div></div><div><br>On 29 Jan 2013, at 11:14, Julian Tenney <<a href="mailto:Julian.Tenney@nottingham.ac.uk">Julian.Tenney@nottingham.ac.uk</a>> wrote:<br><br></div><blockquote type="cite"><div><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><meta name="Generator" content="Microsoft Word 12 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:Helvetica;
        panose-1:2 11 6 4 2 2 2 2 2 4;}
@font-face
        {font-family:SimSun;
        panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
        {font-family:SimSun;
        panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:"\@SimSun";
        panose-1:2 1 6 0 3 1 1 1 1 1;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p
        {mso-style-priority:99;
        mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
        {mso-style-priority:99;
        mso-style-link:"Balloon Text Char";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:8.0pt;
        font-family:"Tahoma","sans-serif";}
span.BalloonTextChar
        {mso-style-name:"Balloon Text Char";
        mso-style-priority:99;
        mso-style-link:"Balloon Text";
        font-family:"Tahoma","sans-serif";}
span.EmailStyle20
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
span.EmailStyle21
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
span.EmailStyle22
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--><div class="WordSection1"><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">This sounds like the problem:<o:p></o:p></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><a href="http://robrosenbaum.com/flash/using-flash-upload-with-php-symfony/">http://robrosenbaum.com/flash/using-flash-upload-with-php-symfony/</a><o:p></o:p></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">I’m not sure how best to solve it,<o:p></o:p></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p><div><div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm"><p class="MsoNormal" style="margin-left:36.0pt"><b><span lang="EN-US" style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">From:</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> <a href="mailto:xerte-dev-bounces@lists.nottingham.ac.uk">xerte-dev-bounces@lists.nottingham.ac.uk</a> [<a href="mailto:xerte-dev-bounces@lists.nottingham.ac.uk">mailto:xerte-dev-bounces@lists.nottingham.ac.uk</a>] <b>On Behalf Of </b>Pat @ Pgogy<br><b>Sent:</b> 29 January 2013 10:58<br><b>To:</b> For Xerte technical developers<br><b>Subject:</b> [Xerte-dev] Re: Media upload<o:p></o:p></span></p></div></div><p class="MsoNormal" style="margin-left:36.0pt"><o:p> </o:p></p><div><p class="MsoNormal" style="margin-left:36.0pt">I would guess then that Firefox using flash confuses itself over the sessions created.<o:p></o:p></p></div><div><p class="MsoNormal" style="margin-left:36.0pt"><o:p> </o:p></p></div><div><p class="MsoNormal" style="margin-left:36.0pt">Do a print_r on session and see what it says for that user? Suspect it'll be empty of the user variables<br><br>Pgogy Webstuff - <a href="http://www.pgogywebstuff.com">http://www.pgogywebstuff.com</a><o:p></o:p></p><div><p class="MsoNormal" style="margin-left:36.0pt">Makers of web things of a fair to middling quality<o:p></o:p></p></div></div><div><p class="MsoNormal" style="mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:12.0pt;margin-left:36.0pt"><br>On 29 Jan 2013, at 09:41, Julian Tenney <<a href="mailto:Julian.Tenney@nottingham.ac.uk">Julian.Tenney@nottingham.ac.uk</a>> wrote:<o:p></o:p></p></div><blockquote style="margin-top:5.0pt;margin-bottom:5.0pt"><div><p class="MsoNormal" style="margin-left:36.0pt"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Yeah, it’s in the file include ../../../config.php and remember it only breaks in firefox…</span><o:p></o:p></p><p class="MsoNormal" style="margin-left:36.0pt"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"> </span><o:p></o:p></p><p class="MsoNormal" style="margin-left:36.0pt"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">But this was that security thing so it would be good to make it work.</span><o:p></o:p></p><p class="MsoNormal" style="margin-left:36.0pt"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"> </span><o:p></o:p></p><div><div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm"><p class="MsoNormal" style="margin-left:72.0pt"><b><span lang="EN-US" style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">From:</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> <a href="mailto:xerte-dev-bounces@lists.nottingham.ac.uk">xerte-dev-bounces@lists.nottingham.ac.uk</a> [<a href="mailto:xerte-dev-bounces@lists.nottingham.ac.uk">mailto:xerte-dev-bounces@lists.nottingham.ac.uk</a>] <b>On Behalf Of </b>Pat @ Pgogy<br><b>Sent:</b> 28 January 2013 17:49<br><b>To:</b> For Xerte technical developers<br><b>Subject:</b> [Xerte-dev] Re: Media upload</span><o:p></o:p></p></div></div><p class="MsoNormal" style="margin-left:72.0pt"> <o:p></o:p></p><div><p class="MsoNormal" style="margin-left:72.0pt">Have you started the session?<o:p></o:p></p></div><div><p class="MsoNormal" style="margin-left:72.0pt"> <o:p></o:p></p></div><div><p class="MsoNormal" style="margin-left:72.0pt">Try including the path to config.php from upload then seeing what happens<br><br>Pgogy Webstuff - <a href="http://www.pgogywebstuff.com">http://www.pgogywebstuff.com</a><o:p></o:p></p><div><p class="MsoNormal" style="margin-left:72.0pt">Makers of web things of a fair to middling quality<o:p></o:p></p></div></div><div><p class="MsoNormal" style="mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:12.0pt;margin-left:72.0pt"><br>On 28 Jan 2013, at 16:31, Julian Tenney <<a href="mailto:Julian.Tenney@nottingham.ac.uk">Julian.Tenney@nottingham.ac.uk</a>> wrote:<o:p></o:p></p></div><blockquote style="margin-top:5.0pt;margin-bottom:5.0pt"><div><p class="MsoNormal" style="margin-left:72.0pt"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Fixed it, I’ve commented out for now the exit() in this bit:</span><o:p></o:p></p><p class="MsoNormal" style="margin-left:72.0pt"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"> </span><o:p></o:p></p><p class="MsoNormal" style="margin-left:72.0pt"><span style="font-size:11.0pt;font-family:"Courier New";color:#1F497D">if(!isset($_SESSION['toolkits_logon_username'])) {</span><o:p></o:p></p><p class="MsoNormal" style="margin-left:72.0pt"><span style="font-size:11.0pt;font-family:"Courier New";color:#1F497D">  print "You are not logged in.";</span><o:p></o:p></p><p class="MsoNormal" style="margin-left:72.0pt"><span style="font-size:11.0pt;font-family:"Courier New";color:#1F497D">// exit();</span><o:p></o:p></p><p class="MsoNormal" style="margin-left:72.0pt"><span style="font-size:11.0pt;font-family:"Courier New";color:#1F497D">}</span><o:p></o:p></p><p class="MsoNormal" style="margin-left:72.0pt"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"> </span><o:p></o:p></p><p class="MsoNormal" style="margin-left:72.0pt"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">…so the if’s iffy.</span><o:p></o:p></p><p class="MsoNormal" style="margin-left:72.0pt"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"> </span><o:p></o:p></p><p class="MsoNormal" style="margin-left:72.0pt"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"> </span><o:p></o:p></p><p class="MsoNormal" style="margin-left:72.0pt"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"> </span><o:p></o:p></p><div><div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm"><p class="MsoNormal" style="margin-left:108.0pt"><b><span lang="EN-US" style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">From:</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> <a href="mailto:xerte-dev-bounces@lists.nottingham.ac.uk">xerte-dev-bounces@lists.nottingham.ac.uk</a> [<a href="mailto:xerte-dev-bounces@lists.nottingham.ac.uk">mailto:xerte-dev-bounces@lists.nottingham.ac.uk</a>] <b>On Behalf Of </b><a href="mailto:xerte@pgogywebstuff.com">xerte@pgogywebstuff.com</a><br><b>Sent:</b> 25 January 2013 15:04<br><b>To:</b> For Xerte technical developers<br><b>Subject:</b> [Xerte-dev] Re: Media upload</span><o:p></o:p></p></div></div><p class="MsoNormal" style="margin-left:108.0pt"> <o:p></o:p></p><p class="MsoNormal" style="margin-left:108.0pt"><span style="font-size:9.0pt;font-family:"Helvetica","sans-serif"">if you're testing on xampp<br><br>add something like<br><br>file_put_contents("c:\\xampp\\post.txt", serialize($_REQUEST)) into upload.php (at the top) and see what happens<br> <br>Pgogy Webstuff <a href="http://www.pgogywebstuff.com">http://www.pgogywebstuff.com</a></span><o:p></o:p></p><div><p class="MsoNormal" style="margin-left:108.0pt"><span style="font-size:9.0pt;font-family:"Helvetica","sans-serif"">Makers of Web things of a fair to middling quality</span><o:p></o:p></p></div><blockquote style="margin-top:5.0pt;margin-bottom:5.0pt"><p class="MsoNormal" style="margin-left:108.0pt"><span style="font-size:9.0pt;font-family:"Helvetica","sans-serif""> </span><o:p></o:p></p><p class="MsoNormal" style="margin-left:108.0pt"><span style="font-size:9.0pt;font-family:"Helvetica","sans-serif""><br>----- Original Message -----</span><o:p></o:p></p><div><div><p class="MsoNormal" style="margin-left:108.0pt;background:#E4E4E4"><b><span style="font-size:9.0pt;font-family:"Helvetica","sans-serif"">From:</span></b><o:p></o:p></p></div><p class="MsoNormal" style="margin-left:108.0pt;background:#E4E4E4"><span style="font-size:9.0pt;font-family:"Helvetica","sans-serif"">"For Xerte technical developers" <<a href="mailto:xerte-dev@lists.nottingham.ac.uk">xerte-dev@lists.nottingham.ac.uk</a>></span><o:p></o:p></p></div><p class="MsoNormal" style="margin-left:108.0pt"><span style="font-size:9.0pt;font-family:"Helvetica","sans-serif""> </span><o:p></o:p></p><div><p class="MsoNormal" style="margin-left:108.0pt"><b><span style="font-size:9.0pt;font-family:"Helvetica","sans-serif"">To:</span></b><o:p></o:p></p></div><p class="MsoNormal" style="margin-left:108.0pt"><span style="font-size:9.0pt;font-family:"Helvetica","sans-serif"">"For Xerte technical developers" <<a href="mailto:xerte-dev@lists.nottingham.ac.uk">xerte-dev@lists.nottingham.ac.uk</a>></span><o:p></o:p></p><div><p class="MsoNormal" style="margin-left:108.0pt"><b><span style="font-size:9.0pt;font-family:"Helvetica","sans-serif"">Cc:</span></b><o:p></o:p></p></div><p class="MsoNormal" style="margin-left:108.0pt"><span style="font-size:9.0pt;font-family:"Helvetica","sans-serif""> </span><o:p></o:p></p><div><p class="MsoNormal" style="margin-left:108.0pt"><b><span style="font-size:9.0pt;font-family:"Helvetica","sans-serif"">Sent:</span></b><o:p></o:p></p></div><p class="MsoNormal" style="margin-left:108.0pt"><span style="font-size:9.0pt;font-family:"Helvetica","sans-serif"">Fri, 25 Jan 2013 14:42:55 +0000</span><o:p></o:p></p><div><p class="MsoNormal" style="margin-left:108.0pt"><b><span style="font-size:9.0pt;font-family:"Helvetica","sans-serif"">Subject:</span></b><o:p></o:p></p></div><p class="MsoNormal" style="mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:12.0pt;margin-left:108.0pt"><span style="font-size:9.0pt;font-family:"Helvetica","sans-serif"">[Xerte-dev] Re: Media upload<br><br><br><br></span><o:p></o:p></p><div><p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;margin-left:108.0pt"><span style="color:#1F497D">Seems to only be a problem for me in Firefox – IE8 & Chrome are working normally</span><o:p></o:p></p><p style="margin-left:108.0pt"><span style="font-size:9.0pt;font-family:"Helvetica","sans-serif""> </span><o:p></o:p></p><div><div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm"><p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;margin-left:144.0pt"><b><span lang="EN-US" style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">From:</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> <a href="mailto:xerte-dev-bounces@lists.nottingham.ac.uk">xerte-dev-bounces@lists.nottingham.ac.uk</a> [<a href="mailto:xerte-dev-bounces@lists.nottingham.ac.uk">mailto:xerte-dev-bounces@lists.nottingham.ac.uk</a>] <b>On Behalf Of </b>Julian Tenney<br><b>Sent:</b> 25 January 2013 14:41<br><b>To:</b> For Xerte technical developers<br><b>Subject:</b> [Xerte-dev] Re: Media upload</span><o:p></o:p></p></div></div><p style="margin-left:108.0pt"><span style="font-size:9.0pt;font-family:"Helvetica","sans-serif""> </span><o:p></o:p></p><p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;margin-left:144.0pt"><span style="color:#1F497D">Likewise, on xampp using the current trunk, I can’t upload media into a project either.</span><o:p></o:p></p><p style="margin-left:108.0pt"><span style="font-size:9.0pt;font-family:"Helvetica","sans-serif""> </span><o:p></o:p></p><p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;margin-left:144.0pt"><span style="color:#1F497D">This might be a problem in the current zip too…</span><o:p></o:p></p><p style="margin-left:108.0pt"><span style="font-size:9.0pt;font-family:"Helvetica","sans-serif""> </span><o:p></o:p></p><div><div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm"><p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;margin-left:180.0pt"><b><span lang="EN-US" style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">From:</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> <a href="mailto:xerte-dev-bounces@lists.nottingham.ac.uk">xerte-dev-bounces@lists.nottingham.ac.uk</a> [<a href="mailto:xerte-dev-bounces@lists.nottingham.ac.uk">mailto:xerte-dev-bounces@lists.nottingham.ac.uk</a>] <b>On Behalf Of </b>Fay Cross<br><b>Sent:</b> 25 January 2013 14:40<br><b>To:</b> For Xerte technical developers<br><b>Subject:</b> [Xerte-dev] Media upload</span><o:p></o:p></p></div></div><p style="margin-left:108.0pt"><span style="font-size:9.0pt;font-family:"Helvetica","sans-serif""> </span><o:p></o:p></p><p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;margin-left:180.0pt">Another problem, not sure if this has come up on here before – I know there have been a few uploading media problems recently but I can’t find a recent one about this.<o:p></o:p></p><p style="margin-left:108.0pt"><span style="font-size:9.0pt;font-family:"Helvetica","sans-serif""> </span><o:p></o:p></p><p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;margin-left:180.0pt">I can’t upload any media using current files.  I can select a file from a folder fine, the FileLocation appears in the wizard and the xml is being updated but nothing’s being copied into the user files media folder.<o:p></o:p></p></div><p class="MsoNormal" style="mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:12.0pt;margin-left:108.0pt"><span style="font-size:9.0pt;font-family:"Helvetica","sans-serif""><br><br><br><br></span><o:p></o:p></p></blockquote></div></blockquote><blockquote style="margin-top:5.0pt;margin-bottom:5.0pt"><div><p class="MsoNormal" style="margin-left:72.0pt">_______________________________________________<br>Xerte-dev mailing list<br><a href="mailto:Xerte-dev@lists.nottingham.ac.uk">Xerte-dev@lists.nottingham.ac.uk</a><br><a href="http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev">http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev</a><o:p></o:p></p></div></blockquote></div></blockquote><blockquote style="margin-top:5.0pt;margin-bottom:5.0pt"><div><p class="MsoNormal" style="margin-left:36.0pt">_______________________________________________<br>Xerte-dev mailing list<br><a href="mailto:Xerte-dev@lists.nottingham.ac.uk">Xerte-dev@lists.nottingham.ac.uk</a><br><a href="http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev">http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev</a><o:p></o:p></p></div></blockquote></div></div></blockquote><blockquote type="cite"><div><span>_______________________________________________</span><br><span>Xerte-dev mailing list</span><br><span><a href="mailto:Xerte-dev@lists.nottingham.ac.uk">Xerte-dev@lists.nottingham.ac.uk</a></span><br><span><a href="http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev">http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev</a></span><br></div></blockquote></body></html>