DirectUpload: Altering control values serverside

Dec 11, 2008 at 1:31 AM
I have an application that uploads files to a dynamic path on S3. This means that I have to alter the path on the serverside.
I have put the code in the PageLoad event, but it doesn't change the attribute value for path in the upload control Directupload adapter.

 com.flajaxian.DirectAmazonUploader aU = (com.flajaxian.DirectAmazonUploader)flxUpload.Adapters[0];

aU.BucketName = "";
aU.Path = "mypath/"+uniqueID()+"/";

On upload, the path is as it is set in the control.

Can you help?

Dec 11, 2008 at 5:08 AM
So I was processing the ajax request before Page_Load event. I moved it to Page_PreRender to allow users do things in Page_Load. 

You can now get this sub version and any future free of charge from
Dec 11, 2008 at 12:02 PM
That's great information. I moved the update routines to page_PreRender and the component updates correctly. Thanks.

As an aside, I tried to download the latest version, using my Paypal transaction ID, but it wasn't recognised.

Dec 11, 2008 at 12:31 PM
Sorry, my bad, moving the update to the Page_PreRender didn't work as I had said above.

I can't access the updated version as it doesn't recognise my Transaction ID.
Dec 11, 2008 at 2:30 PM
So with the latest code you could change the path in Page_Load

I added your ID
Dec 11, 2008 at 3:35 PM
Thanks, that solves it. I can alter the path serverside now,

Many Thanks,