 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
S. Guest
|
Posted: Fri Jan 28, 2005 3:59 pm Post subject: Upload file using TIdHTTPServer |
|
|
Hi,
I use Delphi 7, winXP and my web server is building with TIdHTTPServer
componente. (Indy9)
My web server work fine for simple request.
Now I want uploading files from anywhere with using for example MSIE.
I want pickup the file (test.txt) from clients hard disc and send it via
http to my web server and then save it on hard disc.
I see the matlus site but there I can't find examples with using
TIdHTTPServer.
Any suggestions, examples ?
Thank you very much
S.B.
|
|
| Back to top |
|
 |
Remy Lebeau (TeamB) Guest
|
Posted: Mon Feb 07, 2005 1:13 am Post subject: Re: Upload file using TIdHTTPServer |
|
|
"S." <bostjan (AT) ahac (DOT) si> wrote
| Quote: | I use Delphi 7, winXP and my web server is building with
TIdHTTPServer componente. (Indy9)
My web server work fine for simple request.
Now I want uploading files from anywhere with using for
example MSIE.
I want pickup the file (test.txt) from clients hard disc and
send it via http to my web server and then save it on hard
disc. I see the matlus site but there I can't find examples
with using TIdHTTPServer.
|
When IE uploads a file, the TIdHTTPServer's OnCommandGet event should be
reporting 'POST' for the ARequestInfo.Command property and
'multipart/form-data' for the ARequestInfo.ContentType property.
Indy does not have a specific class/component for decoding files that are
uploaded to an HTTP server. However, you can use TIdMessageDecoderMIME to
decode the uploaded data manually.
Gambit
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|