Home All Groups Group Topic Archive Search About

Uploading to a web from windows.forms application

Author
5 Nov 2005 7:08 PM
Zachovich
Hi

I need to upload files programatically from a windows.forms application to a
web server hosting my domain. the web server dosen't have asp installed this
has to be done purely from the client end without any assistance from any
programs on the server end

so my app should be able to:
   1. open a connection to the site
   2. transfer a file fromt he client to a certain directory on the site
   3. cloes the connection to complete with no fuss.

thanks,
--Zacho

Author
5 Nov 2005 11:32 PM
mos2128
i think this article may help ;
http://www.csharpfriends.com/Articles/getArticle.aspx?articleID=115

--
PLEASE DO NOT FORGET TO RATE THE ANSWER
happy coding
Muhanad YOUNIS
MCSD.NET / MCT


Show quote
"Zachovich" wrote:

> Hi
>
> I need to upload files programatically from a windows.forms application to a
> web server hosting my domain. the web server dosen't have asp installed this
> has to be done purely from the client end without any assistance from any
> programs on the server end
>
> so my app should be able to:
>    1. open a connection to the site
>    2. transfer a file fromt he client to a certain directory on the site
>    3. cloes the connection to complete with no fuss.
>
> thanks,
> --Zacho
Author
9 Nov 2005 7:41 PM
Zachovich
i think this shoud do what i want, i can at least download, i tested it and
it works wonderfully.

about uploading, I have 2 more questions.
the "uploadfile" function has a "method" argument, how many/which types of
methods are there?

I used the "POST" method in my test. When uploading I got a response "method
not allowed" how do i tell my domain that a certain folder in the web should
allow uploading with the post method? Or am i required to pass a username and
password arguments somewhere/ somehow?

I would prefer that the uploading is password protected.

My domain is hosted on an apache server, if that makes a difference.

alrite, i rated your post!
thanks.

will someone pleas answer my other two questions regarding the usage of the
"uploadfile" function?

regards...Zacho








Show quote
"mos2128" wrote:

> i think this article may help ;
> http://www.csharpfriends.com/Articles/getArticle.aspx?articleID=115
>
> --
> PLEASE DO NOT FORGET TO RATE THE ANSWER
> happy coding
> Muhanad YOUNIS
> MCSD.NET / MCT
>
>
> "Zachovich" wrote:
>
> > Hi
> >
> > I need to upload files programatically from a windows.forms application to a
> > web server hosting my domain. the web server dosen't have asp installed this
> > has to be done purely from the client end without any assistance from any
> > programs on the server end
> >
> > so my app should be able to:
> >    1. open a connection to the site
> >    2. transfer a file fromt he client to a certain directory on the site
> >    3. cloes the connection to complete with no fuss.
> >
> > thanks,
> > --Zacho

AddThis Social Bookmark Button