Php photo gallery TWG | JFUploader | TWG Flash upload | WFU | Forum
https://www.tinywebgallery.com/forum/

Additional Parameter to $upload_file
https://www.tinywebgallery.com/forum/viewtopic.php?f=12&t=948
Page 1 of 1

Author:  unifant [ 15. Mar 2007, 13:08 ]
Post subject:  Additional Parameter to $upload_file

Hi there,

i want to give the "tfu_upload.php" additional parameters e.g. customerid.

$upload_file = "&upload_file=tfu_upload.php".rawurlencode('?customerid='.$customer['id']);

But if i do so, the customerid looks like this:
123345678?dir=./temp

Is it possible to do something like this?

Or maybe i can put my parameters at the end (with "&" of course), so i think the problem will not occure.
How can i do this?

Greets
Yasin

Author:  TinyWebGallery [ 15. Mar 2007, 13:51 ]
Post subject: 

Only possible if you get the sources and add this by yourself.

Michael

Author:  unifant [ 15. Mar 2007, 14:00 ]
Post subject: 

Ok thanks, so i have to do it with Session.

But it would be very practicable if there is a variable like $additional_param for this reason.

Bye
Yasin

Author:  TinyWebGallery [ 15. Mar 2007, 14:04 ]
Post subject: 

maybe in 2.6 ;) - I m planning to do a joomla component.
There I have to add some things there anyway.

Michael

Author:  TinyWebGallery [ 15. Mar 2007, 18:51 ]
Post subject: 

will work in the final 2.5 too ;).

Michael

Author:  unifant [ 29. Jun 2007, 16:01 ]
Post subject:  Hi Michael

Is this now included ?

I couldn't find any information about that.

Thanks

Yasin

Author:  TinyWebGallery [ 29. Jun 2007, 16:10 ]
Post subject: 

should work already - I'll check if a ? is in the url and add and & instead an ?.

/Michael

Author:  unifant [ 29. Jun 2007, 16:46 ]
Post subject: 

I have tested this:
Code:
$upload_file = "&upload_file=tfu_upload.php?firstvar=123456";


This works fine.

But a second Param i don't get.

I tried this:
Code:
$upload_file = "&upload_file=tfu_upload.php?firstvar=123456&secondvar=7890";

Author:  TinyWebGallery [ 29. Jun 2007, 16:49 ]
Post subject: 

this is not possible right now because the parameters are sent to the flash as parameterlist - and your 2nd parameter is a new parameter. You have to put both parameters into 1 and parse it.

I can only make it that you use e.g. ___ instead of & and I replace this in the flash.

/Michael

Page 1 of 1 All times are UTC + 1 hour [ DST ]
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/