Link to home
Start Free TrialLog in
Avatar of Motaz
Motaz

asked on

Uploading files to CGI

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
Avatar of ellessar
ellessar

When you say 'receiving' the file, what are you trying to do from the Delphi side to read it?
Avatar of Motaz

ASKER

I cann't find that function (Reading uploaded file in CGI)

Motaz
Avatar of Motaz

ASKER

I cann't find that function (Reading uploaded file in CGI)

Motaz
Avatar of Motaz

ASKER

Adjusted points to 200
Avatar of Motaz

ASKER

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
ASKER CERTIFIED SOLUTION
Avatar of kubeerja
kubeerja

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Motaz

ASKER

motaz1@yahoo.com

Thanks
Avatar of Motaz

ASKER

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
No problem , anytime.
Just keep the copyrights of that component.
why don't use ISAPI instead of CGI it is more powerful?
Avatar of Motaz

ASKER

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
Avatar of Motaz

ASKER

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