[Xerte-dev] Re: Media upload
Pat @ Pgogy
xerte at pgogywebstuff.com
Tue Jan 29 11:29:09 GMT 2013
Make a JS function in the editor php wrapper which returns document cookie
Make a external Fs command call to this function in the wizard
Add the cookie to the URL sent via the upload script
In the php, get at this variable using $_REQUEST
rather than including config.php call session_start($_Request['cookie variable'])
Pgogy Webstuff - http://www.pgogywebstuff.com
Makers of web things of a fair to middling quality
On 29 Jan 2013, at 11:14, Julian Tenney <Julian.Tenney at nottingham.ac.uk> wrote:
> This sounds like the problem:
> http://robrosenbaum.com/flash/using-flash-upload-with-php-symfony/
>
> I’m not sure how best to solve it,
>
> From: xerte-dev-bounces at lists.nottingham.ac.uk [mailto:xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Pat @ Pgogy
> Sent: 29 January 2013 10:58
> To: For Xerte technical developers
> Subject: [Xerte-dev] Re: Media upload
>
> I would guess then that Firefox using flash confuses itself over the sessions created.
>
> Do a print_r on session and see what it says for that user? Suspect it'll be empty of the user variables
>
> Pgogy Webstuff - http://www.pgogywebstuff.com
> Makers of web things of a fair to middling quality
>
> On 29 Jan 2013, at 09:41, Julian Tenney <Julian.Tenney at nottingham.ac.uk> wrote:
>
> Yeah, it’s in the file include ../../../config.php and remember it only breaks in firefox…
>
> But this was that security thing so it would be good to make it work.
>
> From: xerte-dev-bounces at lists.nottingham.ac.uk [mailto:xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Pat @ Pgogy
> Sent: 28 January 2013 17:49
> To: For Xerte technical developers
> Subject: [Xerte-dev] Re: Media upload
>
> Have you started the session?
>
> Try including the path to config.php from upload then seeing what happens
>
> Pgogy Webstuff - http://www.pgogywebstuff.com
> Makers of web things of a fair to middling quality
>
> On 28 Jan 2013, at 16:31, Julian Tenney <Julian.Tenney at nottingham.ac.uk> wrote:
>
> Fixed it, I’ve commented out for now the exit() in this bit:
>
> if(!isset($_SESSION['toolkits_logon_username'])) {
> print "You are not logged in.";
> // exit();
> }
>
> …so the if’s iffy.
>
>
>
> From: xerte-dev-bounces at lists.nottingham.ac.uk [mailto:xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of xerte at pgogywebstuff.com
> Sent: 25 January 2013 15:04
> To: For Xerte technical developers
> Subject: [Xerte-dev] Re: Media upload
>
> if you're testing on xampp
>
> add something like
>
> file_put_contents("c:\\xampp\\post.txt", serialize($_REQUEST)) into upload.php (at the top) and see what happens
>
> Pgogy Webstuff http://www.pgogywebstuff.com
> Makers of Web things of a fair to middling quality
>
>
> ----- Original Message -----
> From:
> "For Xerte technical developers" <xerte-dev at lists.nottingham.ac.uk>
>
> To:
> "For Xerte technical developers" <xerte-dev at lists.nottingham.ac.uk>
> Cc:
>
> Sent:
> Fri, 25 Jan 2013 14:42:55 +0000
> Subject:
> [Xerte-dev] Re: Media upload
>
>
>
>
> Seems to only be a problem for me in Firefox – IE8 & Chrome are working normally
>
>
> From: xerte-dev-bounces at lists.nottingham.ac.uk [mailto:xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Julian Tenney
> Sent: 25 January 2013 14:41
> To: For Xerte technical developers
> Subject: [Xerte-dev] Re: Media upload
>
>
> Likewise, on xampp using the current trunk, I can’t upload media into a project either.
>
>
> This might be a problem in the current zip too…
>
>
> From: xerte-dev-bounces at lists.nottingham.ac.uk [mailto:xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Fay Cross
> Sent: 25 January 2013 14:40
> To: For Xerte technical developers
> Subject: [Xerte-dev] Media upload
>
>
> 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.
>
>
> 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.
>
>
>
>
>
> _______________________________________________
> Xerte-dev mailing list
> Xerte-dev at lists.nottingham.ac.uk
> http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev
> _______________________________________________
> Xerte-dev mailing list
> Xerte-dev at lists.nottingham.ac.uk
> http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev
> _______________________________________________
> Xerte-dev mailing list
> Xerte-dev at lists.nottingham.ac.uk
> http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nottingham.ac.uk/pipermail/xerte-dev/attachments/20130129/7cf84312/attachment.html>
More information about the Xerte-dev
mailing list