cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Uploading image from website - path? Windows Hosting

From my website I'm trying to upload an profile image but I can't figure out what the path would be to save the file? I created a folder called ProfileImages in the httpdocs folder.

 

When my site tries to save the file I get this error. 

The network path was not found.

 

In my web.config I'm using this path to save the file, obviously it's wrong, what should it be?    

 

<add key="Uploadpath" value="\\ProfileImages\" />

 

Thanks!

9 REPLIES 9
Helper VI

have you tried using an absolute path?

~Jan Mykhail Hasselbring Web Administrator @ fullstackwebsolution.com

\\Path is going to make your computer or server look for a directory in your network.

C:\path will make your computer or server look for a directory in your computer.

 

Could that be the problem?

~Jan Mykhail Hasselbring Web Administrator @ fullstackwebsolution.com


@JHasselbring wrote:

\\Path is going to make your computer or server look for a directory in your network.

C:\path will make your computer or server look for a directory in your computer.

 

Could that be the problem?


No sorry, I'm looking for the path to save it on the GoDaddy server.

Yes I know lol. What's the path to your web root?
~Jan Mykhail Hasselbring Web Administrator @ fullstackwebsolution.com

Also, how do you upload your files?
~Jan Mykhail Hasselbring Web Administrator @ fullstackwebsolution.com


@JHasselbring wrote:
Yes I know lol. What's the path to your web root?

I guess that's my question, what is the path?

Are you running PHP or IIS?

~Jan Mykhail Hasselbring Web Administrator @ fullstackwebsolution.com


@JHasselbring wrote:

Are you running PHP or IIS?


IIS

I modified my code to do a Server.MapPath(filePath) before SaveAs. I get a different permissions error, so I think I'm making progress.