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
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
When you say 'receiving' the file, what are you trying to do from the Delphi side to read it?
Download this zip and read Episode 4:
http://www5.ewebcity.com/epsylon/download.asp?file=WebServer.zip
http://www5.ewebcity.com/epsylon/download.asp?file=WebServer.zip
Download this zip and read Episode 4:
http://www5.ewebcity.com/epsylon/download.asp?file=WebServer.zip
http://www5.ewebcity.com/epsylon/download.asp?file=WebServer.zip
ASKER
I cann't find that function (Reading uploaded file in CGI)
Motaz
Motaz
ASKER
I cann't find that function (Reading uploaded file in CGI)
Motaz
Motaz
ASKER
Adjusted points to 200
ASKER
I do not know where is the problem is it in the HTML form ( I use encrypt="multi-part/form-d ata") 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
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
motaz1@yahoo.com
Thanks
Thanks
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
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?
Just keep the copyrights of that component.
why don't use ISAPI instead of CGI it is more powerful?
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
If you have a solution for this restarting please tell me.
Thanks very much
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
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