Solved

Uploading files to CGI

Posted on 2000-02-27
13
262 Views
Last Modified: 2013-11-18
I want send files from the internet browser to my CGI application.

Note:

There is no problem in sending file from browser, but the problem is in receiving that file.

I use STAND-ALONE CGI

Motaz
www.geocities.com/motaz1
0
Comment
Question by:Motaz
  • 8
  • 2
  • 2
  • +1
13 Comments
 

Expert Comment

by:ellessar
ID: 2564368
When you say 'receiving' the file, what are you trying to do from the Delphi side to read it?
0
 
LVL 13

Expert Comment

by:Epsylon
ID: 2566852
0
 
LVL 13

Expert Comment

by:Epsylon
ID: 2585659
0
 
LVL 7

Author Comment

by:Motaz
ID: 2595352
I cann't find that function (Reading uploaded file in CGI)

Motaz
0
 
LVL 7

Author Comment

by:Motaz
ID: 2595369
I cann't find that function (Reading uploaded file in CGI)

Motaz
0
 
LVL 7

Author Comment

by:Motaz
ID: 2595371
Adjusted points to 200
0
Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

 
LVL 7

Author Comment

by:Motaz
ID: 2595384
I do not know where is the problem is it in the HTML form ( I use encrypt="multi-part/form-data") or in the CGI, I use this method to read the file:

var
  Buf: array [0 .. 4000] of char;
  Len: Integer;
begin
  Len:= Request.ReadClient(Buf, SizeOf(Buf));
  // The program hangs in this point. and the CGI does not responding
end;

Motaz
0
 
LVL 2

Accepted Solution

by:
kubeerja earned 200 total points
ID: 2596183
I have a component that can do that for u with some sample code.It works with Delphi Webmodule. Send me your mail and I will send it to you.
0
 
LVL 7

Author Comment

by:Motaz
ID: 2599571
motaz1@yahoo.com

Thanks
0
 
LVL 7

Author Comment

by:Motaz
ID: 2607275
Thanks Jamal, you really helped me and help other 4 people, in a three projects. Did you mind to contact you in the future here in Ex-Ex for furthere CGI problems?

Motaz
www.geocities.com/motaz1
0
 
LVL 2

Expert Comment

by:kubeerja
ID: 2607302
No problem , anytime.
Just keep the copyrights of that component.
why don't use ISAPI instead of CGI it is more powerful?
0
 
LVL 7

Author Comment

by:Motaz
ID: 2607375
I didn't think so, any thing in ISAPI can be done using CGI, and I do not want to use web server applications for large systems, I only expect less than 20 concurrent users for all my applications. Moreover when I use ISAPI I need to restart my computer when I need to modify my ISAPI DLL.
If you have a solution for this restarting please tell me.

Thanks very much

Motaz
0
 
LVL 7

Author Comment

by:Motaz
ID: 6673246
Hi Jamal Kubber.
I've been used your greate component all the time with Delphi 5, now we have a problem in Delphi 6. Did you release a newer version of the component?

Motaz
0

Featured Post

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

I will show you how to create a ASP.NET Captcha control without using any HTTP HANDELRS or what so ever. you can easily plug it into your web pages. For Example a = 2 + 3 (where 2 and 3 are 2 random numbers) Session("Answer") = 5 then we…
Shoutout to Emily Plummer (http://www.experts-exchange.com/members/eplummer26.html) for giving me this article! She did most of it, I just finished it up and posted it for her :)    Introduction In a previous article (http://www.experts-exchang…
Viewers will learn about the different types of variables in Java and how to declare them. Decide the type of variable desired: Put the keyword corresponding to the type of variable in front of the variable name: Use the equal sign to assign a v…
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

759 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now