Home All Groups Group Topic Archive Search About

Upload file programmatically

Author
27 Mar 2005 12:25 AM
Shen
Hi,
I want to upload a csv file to my website via a windows form by click a
button. Can anyone provide an example on how to do that? Do I have to code
on the server side as well?

Thanks
Shen

Author
27 Mar 2005 12:33 AM
Crouchie1998
Here's the FTP way:

http://support.microsoft.com/default.aspx?scid=kb;en-us;832679

or do you mean via HTTP?
Author
27 Mar 2005 6:12 PM
Shen
Thanks, I'll give a try.

Shen

Show quoteHide quote
"Crouchie1998" <crouchie1***@discussions.microsoft.com> wrote in message
news:us9MITmMFHA.4092@tk2msftngp13.phx.gbl...
> Here's the FTP way:
>
> http://support.microsoft.com/default.aspx?scid=kb;en-us;832679
>
> or do you mean via HTTP?
>
>
Author
27 Mar 2005 1:19 AM
Herfried K. Wagner [MVP]
"Shen" <snorlax***@hotmail.com> schrieb:
> I want to upload a csv file to my website via a windows form by click a
> button. Can anyone provide an example on how to do that? Do I have to code
> on the server side as well?

If the server supports FTP, take a look here:

Accessing FTP servers in .NET applications
<URL:http://dotnet.mvps.org/dotnet/faqs/?id=ftp&lang=en>

--
M S   Herfried K. Wagner
M V P  <URL:http://dotnet.mvps.org/>
V B   <URL:http://classicvb.org/petition/>
Author
27 Mar 2005 6:14 PM
Shen
Thanks, Is there a way via Http?


Show quoteHide quote
"Herfried K. Wagner [MVP]" <hirf-spam-me-here@gmx.at> wrote in message
news:ePydCrmMFHA.2704@TK2MSFTNGP15.phx.gbl...
> "Shen" <snorlax***@hotmail.com> schrieb:
>> I want to upload a csv file to my website via a windows form by click a
>> button. Can anyone provide an example on how to do that? Do I have to
>> code on the server side as well?
>
> If the server supports FTP, take a look here:
>
> Accessing FTP servers in .NET applications
> <URL:http://dotnet.mvps.org/dotnet/faqs/?id=ftp&lang=en>
>
> --
> M S   Herfried K. Wagner
> M V P  <URL:http://dotnet.mvps.org/>
> V B   <URL:http://classicvb.org/petition/>
Author
27 Mar 2005 6:47 PM
Herfried K. Wagner [MVP]
"Shen" <snorlax***@hotmail.com> schrieb:
> Thanks, Is there a way via Http?

'WebClient.UploadFile'.

--
M S   Herfried K. Wagner
M V P  <URL:http://dotnet.mvps.org/>
V B   <URL:http://classicvb.org/petition/>
Author
27 Mar 2005 6:25 AM
Richard L Rosenheim
If you wish to do it via FTP, yes.  Personally, I used FTP Client Class
Library
http://www.gotdotnet.com/Community/UserSamples/Details.aspx?SampleGuid=E434024B-62C8-48F6-BE8A-F20EF90BB586,
and the web server also needs to be running a FTP server.

If you wish to do it via HTTP, then yes you can, but you need a web page on
the server.

Richard Rosenheim



"Shen" <snorlax***@hotmail.com> wrote in message
news:24n1e.802839$Xk.749944@pd7tw3no...
Show quoteHide quote
> Hi,
> I want to upload a csv file to my website via a windows form by click a
> button. Can anyone provide an example on how to do that? Do I have to code
> on the server side as well?
>
> Thanks
> Shen
>
>
Author
27 Mar 2005 6:15 PM
Shen
Thanks, Richard.

Do you have an example of doing it via HTTP?

Show quoteHide quote
"Richard L Rosenheim" <rich***@rlr.com> wrote in message
news:%23FRsUXpMFHA.3616@TK2MSFTNGP09.phx.gbl...
> If you wish to do it via FTP, yes.  Personally, I used FTP Client Class
> Library
> http://www.gotdotnet.com/Community/UserSamples/Details.aspx?SampleGuid=E434024B-62C8-48F6-BE8A-F20EF90BB586,
> and the web server also needs to be running a FTP server.
>
> If you wish to do it via HTTP, then yes you can, but you need a web page
> on
> the server.
>
> Richard Rosenheim
>
>
>
> "Shen" <snorlax***@hotmail.com> wrote in message
> news:24n1e.802839$Xk.749944@pd7tw3no...
>> Hi,
>> I want to upload a csv file to my website via a windows form by click a
>> button. Can anyone provide an example on how to do that? Do I have to
>> code
>> on the server side as well?
>>
>> Thanks
>> Shen
>>
>>
>
>