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

how to create folder before uploading...

3 Answers 105 Views
Upload
This is a migrated thread and some comments may be shown as answers.
Kamal Mostofi
Top achievements
Rank 1
Kamal Mostofi asked on 02 Jan 2011, 12:13 AM
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

3 Answers, 1 is accepted

Sort by
0
Accepted
Tina Stancheva
Telerik team
answered on 03 Jan 2011, 06:34 PM
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
0
Kamal Mostofi
Top achievements
Rank 1
answered on 06 Feb 2011, 12:21 PM
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
0
Tina Stancheva
Telerik team
answered on 09 Feb 2011, 02:02 PM
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>>
Tags
Upload
Asked by
Kamal Mostofi
Top achievements
Rank 1
Answers by
Tina Stancheva
Telerik team
Kamal Mostofi
Top achievements
Rank 1
Share this question
or