Pure PHP Upload 2 Support Product Page

Not a problem

Dynamic path name ignored by uploader

Reported 23 Feb 2010 19:08:25
1
has this problem
23 Feb 2010 19:08:25 Ross Edwards posted:
I have a script using PPU, with AMU and SIP.

The path to save the images is taken from a PHP session variable like this:

$user_id = $_SESSION['selected_user_id'];
$asset_id = $_SESSION['asset_id'];
$path = 'assets/'.$user_id.'/'.$asset_id;
$ppu->path = $path;
echo $ppu->path;

It works fine in IE, but not in Mozilla / Firefox / Chrome / Safari.

On the other browsers the images are all uploaded to the assets/ root folder. If hard code the path name it works fine.

The weird thing is if I echo the path on the form, it is correct. It just seems to ignore the variable parts of it. I have also tried passing using $_POST instead but get the same problem. Why should this not work on non IE browsers when surely it is a server-side thing?

Help!

Replies

Replied 24 Feb 2010 11:27:02
24 Feb 2010 11:27:02 Miroslav Zografski replied:
Hello Ross,

That is a flash limitation and it is up to Adobe Flash team to come up with a solution. Unfortunately there is no workaround.

Regards,
Replied 26 Feb 2010 19:09:59
26 Feb 2010 19:09:59 Ross Edwards replied:
Whoa! This is a major limitation with the product, doesn't matter if it is Adobe's fault or yours!

Can you confirm - are you saying it is impossible to use this with a dynamic path in any non-IE browser?

If so can I have my money back as the product is advertised as not browser dependent.

Kind regards

Reply to this topic