Upload to a UNC path

14 posts, 0 answers
  1. Joe
    Joe avatar
    9 posts
    Member since:
    Mar 2009

    Posted 20 Apr 2009 Link to this post

    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

  2. Bobi
    Admin
    Bobi avatar
    513 posts

    Posted 21 Apr 2009 Link to this post

    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.
  3. DevCraft banner
  4. Joe
    Joe avatar
    9 posts
    Member since:
    Mar 2009

    Posted 21 Apr 2009 Link to this post

    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
  5. Bobi
    Admin
    Bobi avatar
    513 posts

    Posted 22 Apr 2009 Link to this post

    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.
  6. Joe
    Joe avatar
    9 posts
    Member since:
    Mar 2009

    Posted 22 Apr 2009 Link to this post

    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
  7. Jan Michael
    Jan Michael avatar
    13 posts
    Member since:
    Oct 2008

    Posted 23 Apr 2009 Link to this post

    Hi Joe, same problem with me. Disregard the TargetFolder and used the Targetphysicalfolder and set your network path there.

    Regards,
    Jan Michael
  8. Bobi
    Admin
    Bobi avatar
    513 posts

    Posted 23 Apr 2009 Link to this post

    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.
  9. Joe
    Joe avatar
    9 posts
    Member since:
    Mar 2009

    Posted 23 Apr 2009 Link to this post

    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
  10. Bobi
    Admin
    Bobi avatar
    513 posts

    Posted 24 Apr 2009 Link to this post

    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.
  11. Joe
    Joe avatar
    9 posts
    Member since:
    Mar 2009

    Posted 24 Apr 2009 Link to this post

    We have a shared drive. Where would I put the logic for the logging credentials?
  12. Joe
    Joe avatar
    9 posts
    Member since:
    Mar 2009

    Posted 24 Apr 2009 Link to this post

    Is there an example of the RadUpload being used to upload files onto a network path that has login credentials?

    Thanks,
    Joe
  13. Jan Michael
    Jan Michael avatar
    13 posts
    Member since:
    Oct 2008

    Posted 24 Apr 2009 Link to this post

    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
  14. Joe
    Joe avatar
    9 posts
    Member since:
    Mar 2009

    Posted 24 Apr 2009 Link to this post

    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
  15. Ivan
    Admin
    Ivan avatar
    519 posts

    Posted 27 Apr 2009 Link to this post

    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.
Back to Top
DevCraft banner