Quantcast
Channel: Security
Viewing all articles
Browse latest Browse all 4737

Uploading Files to a Network Shared Folder

$
0
0

Hello,

I am writing a single page application which allows users to browse and upload files to a file server.

Code: 

'----- Clciking Upload Button '----
Protected Sub UploadDoc(sender As Object, e As EventArgs) Handles btnUpload.Click

MyFile.PostedFile.SaveAs("\\10.87.205.71\FilesFolder\test.pdf")

End Sub

The application is hosted in an application server the shared folder is hosted in a file server.

I got this error after running my code:

The user name or password is incorrect.

I have already shared FilesFolder and grant access to a specific user account. My question is how can I pass the username and password in the Postedfile.Saveas?


Viewing all articles
Browse latest Browse all 4737

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>