Rad Upload Control send parameters to server error

3 posts, 0 answers
  1. JJ Loubser
    JJ Loubser avatar
    42 posts
    Member since:
    Jul 2009

    Posted 12 Jul 2011 Link to this post

    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. JJ Loubser
    JJ Loubser avatar
    42 posts
    Member since:
    Jul 2009

    Posted 13 Jul 2011 Link to this post

    I just put string myParam = this.GetQueryParameter("MyLogoFileValue"); in a different method, it works everywhere.
  3. DevCraft banner
  4. Alex Fidanov
    Alex Fidanov avatar
    636 posts

    Posted 14 Jul 2011 Link to this post

    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!

Back to Top