how to create folder before uploading...

4 posts, 1 answers
  1. Kamal Mostofi
    Kamal Mostofi avatar
    56 posts
    Member since:
    Jan 2010

    Posted 01 Jan 2011 Link to this post

    Hi,

    Happy New Year.
    In my project I have clients details and a table that stores multiple image path. Before uploading images, I should get the ID for the client, create a new folder base on client's ID and upload the images into the folder.  How can I do that? Is there any method in this control?

    I apreciate your help very much.
    Many thanks,
    Kam
  2. Answer
    Tina Stancheva
    Admin
    Tina Stancheva avatar
    3298 posts

    Posted 03 Jan 2011 Link to this post

    Hello Kamal Mostofi,

    You can have a look at this KB article illustrating how to implement similar scenario. I hope it helps. Let us know if we can further assist you.

    Kind regards,
    Tina Stancheva
    the Telerik team
    Browse the videos here>> to help you get started with RadControls for Silverlight
  3. DevCraft banner
  4. Kamal Mostofi
    Kamal Mostofi avatar
    56 posts
    Member since:
    Jan 2010

    Posted 06 Feb 2011 Link to this post

    Hi,

    The solution you gave me worked perfectly. But it has been for 2 days that when I try to upload an image , I get an error iconn on the control. It says it cannot save the file [The given path's format is not supported].
    Do you know the reason why?
    I test the handler and works fine. I did use firebug and I get the following in the response tab:

    {"JSONData":[{"Key":"0_RadUAG_finalFileRequest","Value":true},{"Key":"0_RadUAG_message","Value":"Cannot save the file: [The given path's format is not supported.]"},{"Key":"0_RadUAG_success","Value":false},{"Key":"0_RadUAG_fileName","Value":"16Azar2.jpg"},{"Key":"0_RadUAG_associatedData","Value":""}]}
      
          
    1 request
        

    and also find this one from firebug when I tried to load another image
    Server  ASP.NET Development Server/10.0.0.0
    Date    Sat, 06 Feb 2010 11:20:47 GMT
    Cache-Control   private
    Content-Type    text/html; charset=utf-8
    Content-Length  315
    Connection  Close
    Request Headersview source
    Host    localhost:12530
    User-Agent  Mozilla/5.0 (Windows; U; Windows NT 6.1; en-GB; rv:1.9.2.13) Gecko/20101203 Firefox/3.6.13
    Accept  text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
    Accept-Language en-gb,en;q=0.5
    Accept-Encoding gzip,deflate
    Accept-Charset  ISO-8859-1,utf-8;q=0.7,*;q=0.7
    Keep-Alive  115
    Connection  keep-alive

    Thanks for your help.

    Kamal
  5. Tina Stancheva
    Admin
    Tina Stancheva avatar
    3298 posts

    Posted 09 Feb 2011 Link to this post

    Hello Kamal Mostofi,

    It seems that the path to the file you're saving has invalid format. However, I cannot be sure what exactly might be causing the issue. Therefore I wanted to ask you to send us a sample project reproducing the issue or your RadUpload and RadUploadHandler implementations. This will allow us to further investigate your issue and provide you with an appropriate solution.

    Thank you in advance.

    All the best,
    Tina Stancheva
    the Telerik team
    Let us know about your Windows Phone 7 application built with RadControls and we will help you promote it. Learn more>>
Back to Top