This is a migrated thread and some comments may be shown as answers.

Rad Upload Control send parameters to server error

2 Answers 36 Views
Upload
This is a migrated thread and some comments may be shown as answers.
JJ Loubser
Top achievements
Rank 1
JJ Loubser asked on 12 Jul 2011, 02:37 PM
want to change my filename string on the server folder done the

File-specific parameters in

: http://www.telerik.com/help/silverlight/radupload-features-upload-service-parameters.html#Upload-specific_parameters

when I debug through:

//sent to server parameters - Add By JJ Loubser
        public override bool SaveChunkData(string filePath, long position, byte[] buffer, int contentLength, out int savedBytes)
        {
            string myParam = this.GetQueryParameter("MyLogoFileValue");

            //this.ResultChunkTag = myParam;

            this.newFileName = myParam + this.newFileName;

            return base.SaveChunkData(filePath, position, buffer, contentLength, out savedBytes);
        }
// the parameters filePath is empty and through error why?
// this.newFileName is also empty so it does not make sense to change the file name from here, where?

2 Answers, 1 is accepted

Sort by
0
JJ Loubser
Top achievements
Rank 1
answered on 13 Jul 2011, 06:36 AM
I just put string myParam = this.GetQueryParameter("MyLogoFileValue"); in a different method, it works everywhere.
0
Alex Fidanov
Telerik team
answered on 14 Jul 2011, 12:14 PM
Hello Jj Loubser,

I would recommend looking through this article in our help on working with parameters and which are the methods where they can be send ot received from and to the server.

All the best,
Alex Fidanov
the Telerik team

Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

Tags
Upload
Asked by
JJ Loubser
Top achievements
Rank 1
Answers by
JJ Loubser
Top achievements
Rank 1
Alex Fidanov
Telerik team
Share this question
or