BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Upload file using TIdHTTPServer

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Internet Winsock
View previous topic :: View next topic  
Author Message
S.
Guest





PostPosted: Fri Jan 28, 2005 3:59 pm    Post subject: Upload file using TIdHTTPServer Reply with quote



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





PostPosted: Mon Feb 07, 2005 1:13 am    Post subject: Re: Upload file using TIdHTTPServer Reply with quote




"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
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Internet Winsock All times are GMT
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.