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

Upload to a UNC path

13 Answers 175 Views
Upload
This is a migrated thread and some comments may be shown as answers.
Joe
Top achievements
Rank 1
Joe asked on 20 Apr 2009, 11:43 PM
I am trying to upload files to a UNC path. I followed the directions on this post to set up a virtual folder that is pointing the the UNC path but I keep get the following error on the upload control:

"Cannot open the file for writing [Logon on failure: Unknown username or bad password.]"

How can I set the upload folder to a UNC path?

Thanks,
Joe

13 Answers, 1 is accepted

Sort by
0
Bobi
Telerik team
answered on 21 Apr 2009, 12:24 PM
Hello Joe,
The post you are following is for uploading images using RadControls for ASP.NET and ASP.NET Ajax.
If you want to upload images using Silverlight please take a look at :

http://www.telerik.com/support/kb/silverlight/upload/radupload-for-silverlight-in-the-image-gallery-example.aspx

I hope that this will help you.

Regards,
Boryana
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Joe
Top achievements
Rank 1
answered on 21 Apr 2009, 04:13 PM
Thank you for the reply Boryana.

I am able to get the upload to work locally. However in production we have a UNC path pointing to a file server. We need the files to be uploaded there because we have replicated webservers. Is this possible?

Thanks,
Joe
0
Bobi
Telerik team
answered on 22 Apr 2009, 01:32 PM
Hi Joe,

For now RadUpload can work only with files that reside in the local file system. So you are currently not allowed to specify non-local files in the upload dialog. For more information  please visit the online help documentation:

http://www.telerik.com/help/silverlight/setup_radupload.html

Let me know if you have further questions.

Greetings,
Boryana
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Joe
Top achievements
Rank 1
answered on 22 Apr 2009, 06:52 PM
Im sorry, I must not be explaining this right. We need to upload the files to a network path. We have a webfarm so uploading files to the webserver will not suffice for us. When a user hits our site we will not know which one of our servers they are hitting, which is why we need to upload the files to a network path. How would I do this with the raduplad?

I need to be able to set the TargetFolder to a network path.

Thanks,
Joe
0
Jan Michael
Top achievements
Rank 1
answered on 23 Apr 2009, 10:28 AM
Hi Joe, same problem with me. Disregard the TargetFolder and used the Targetphysicalfolder and set your network path there.

Regards,
Jan Michael
0
Bobi
Telerik team
answered on 23 Apr 2009, 02:15 PM
Hi Jan,

Using the TargetPhysicalFolder property instead of TargetFolder is indeed the right thing to do when you need to use a network path.

Best wishes,
Boryana
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Joe
Top achievements
Rank 1
answered on 23 Apr 2009, 05:57 PM
The control is using the current logged in user's credentials to attempt to connect to the network folder. However I need to use a specific identity to access the network folder, what would be the best way to do this?

Thanks,
Joe
0
Bobi
Telerik team
answered on 24 Apr 2009, 03:07 PM
Hello Joe,

First you have to add some logic about the Logging Credentials. RadUpload can only upload files. It cannot be used as logging credential manager. The upload folder have to be on the same computer where the UploadHandler resides (to be accessible from the local file system, if it is on another PC then it should be shared or mapped).

Best wishes,
Boryana
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Joe
Top achievements
Rank 1
answered on 24 Apr 2009, 03:14 PM
We have a shared drive. Where would I put the logic for the logging credentials?
0
Joe
Top achievements
Rank 1
answered on 24 Apr 2009, 07:02 PM
Is there an example of the RadUpload being used to upload files onto a network path that has login credentials?

Thanks,
Joe
0
Jan Michael
Top achievements
Rank 1
answered on 24 Apr 2009, 08:01 PM
Hi Joe, 
    In our own experience in using this radupload, we just grant a permission the IIS Network Service, where the website has been deployed,  to the shared drive we provide. We don't give every user a permission, just the network service. If you don't want that all user can upload, just add some logic there, the checking maybe by the user role.

Regards,
Jan Michael
0
Joe
Top achievements
Rank 1
answered on 24 Apr 2009, 08:27 PM
Thank you for your response Jan.

Are your webservers on a cluster? Our network admin doesnt seem to like this. Here is what he is telling me....

The issue with the way that we are doing this is that the servers are in a cluster, so we don't know which server the uploads are going to be coming from, and I am not going to be giving a generic computer account access into our file server.  I know that you can impersonate an application to connect to a file share using a specific account, which we have setup currently.  If it is not possible for this Silverlight control to use a different account, then I would recommend looking for another control that will be able to upload using the web_user account.

Thanks,
Joe
0
Ivan
Telerik team
answered on 27 Apr 2009, 02:53 PM
Hi Joe,

For now the RadUpload can only work with files that reside in the local file system. So you are currently not allowed to specify non-local files in the upload dialog. The UploadHandler works in same maner - it can save files in its local file system only. If you have permission restrictions to access your final target folder you have to override and customize the upload-handler - we have prepared the upload-handler to be easily customizable - you should override the ProcessStream method and implement your custom logic there (re-upload to the network path).

Let me know if this helps.

Best wishes,
Ivan
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
Upload
Asked by
Joe
Top achievements
Rank 1
Answers by
Bobi
Telerik team
Joe
Top achievements
Rank 1
Jan Michael
Top achievements
Rank 1
Ivan
Telerik team
Share this question
or