?
Solved

Uploading files to CGI

Posted on 2000-02-27
13
Medium Priority
?
281 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

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

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

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

Styling your websites can become very complex. Here I'll show how SASS can help you better organize, maintain and reuse your CSS code.
Browsers only know CSS so your awesome SASS code needs to be translated into normal CSS. Here I'll try to explain what you should aim for in order to take full advantage of SASS.
Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.
Suggested Courses

762 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