Solved

Uploading files to CGI

Posted on 2000-02-27
13
270 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
Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
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
 
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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Preface In the first article: A Better Website Login System (http://www.experts-exchange.com/A_2902.html) I introduced the EE Collaborative Login System and its intended purpose. In this article I will discuss some of the design consideratio…
Introduction Since I wrote the original article about Handling Date and Time in PHP and MySQL (http://www.experts-exchange.com/articles/201/Handling-Date-and-Time-in-PHP-and-MySQL.html) several years ago, it seemed like now was a good time to updat…
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

829 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