Click here to Skip to main content
15,892,737 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Does anyone know the real absolute pathname for on-line storage at Go Daddy? They won't tell me.

I want to use data files that I will store there in my program and access them from within the program. I don't think the current path that I am using is correct. I've tried: "https://www.onlinefilefolder.com[^]" and "https://onlinefilefolder.com[^]". Of course I am passing the username and password.

I am testing this using code I downlaoded from Codeproject:

To Upload a file: "How to Upload a File to a WebDAV Server in VB.NET[^]"

And the companion code written by VB Rocks to down-load a file.

When I try uploading, I got a 405 error (method not supported).

When I try to down-load,I get a "file server not found error".
Posted
Updated 12-Oct-12 6:43am
v3

1 solution

Hi,

On the server there are always virtual directory where your website is hosted. so nobody will provide you the absolute path of your application(for security reason). what you need to do is, just use relative path from the root directory of your folder. To upload any of the file you can use either database to store or create one temporary directory inside your given area.

Actually i do not have much idea about VB rocks but this is the general scenario. and it may also apply in your case.

Go through some tutorial for relative paths in your language. and best of luck :)
 
Share this answer
 
Comments
KevinBrady57 12-Oct-12 13:05pm    
Thank you for the quick response.

Do you know anything about the 405 error?
AmitGajjar 13-Oct-12 0:52am    
it means you do not have access rights to access that link. see http://en.wikipedia.org/wiki/HTTP_403
KevinBrady57 13-Oct-12 14:39pm    
The error I am getting is a 405 error (method not allowed) NOT a 403 error. The method I am calling for upload is "Put" I think the pathname is correct, otherwise I would get an error message indicating that the web site could not be found. I am able to manually copy a file to that location using Windows Explorer or from the command line, so I do have write permission to the location. I just can't do it from the program in the Visual Studio environment. There are parameters for the HttpWebRequest method that I am unsure of. If you can provide assistance on these it would be appreiated. Should I specify a port? AllowWriteStreamBuffering = True Is this correct? SendChunked = True Is this correct? Headers.Add("Translate: f") Is this Correct?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900