Solved

file transfer to server

Posted on 2000-04-08
1
202 Views
Last Modified: 2013-12-25
Hello,
I have an HTML form which contains a TEXTAREA box and submit button.  Currently I paste text into the box and click submit and the submitted text is processed by my cgi script.  However, I am now running into the problem for the case in which I have to paste a very large block of text.  When I paste a very large block of text, the browser (IE 5.0) will freeze for up to 5 minutes before the text is finally rendered in the textarea box at which point I can then click submit and everything works fine.  But I don't like waiting 5 minutes waiting for the browser to come back.  So I was wondering if there is a way to somehow attach or specify the location of a file (which contains the large block of text) on the HTML form and have that file transferred to the HTTP server so that my cgi script can then process it ?
The solution has to be platform independent.  Also, if you have a better idea than transferring the file please suggest it (I am mostly concerned with avoiding the browser freeze up problem).
Thanks
0
Comment
Question by:chichioco
[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
1 Comment
 
LVL 1

Accepted Solution

by:
mafweb earned 80 total points
ID: 2696684
there is a
<input type=file> tag. AFAIK, this works with IE, NS and opera. One day also lynx shall support this. Hope this is platform independent enough :)
use it like this:
<form action=whatever.cgi method=post enctype=multipart/form-data>
<INPUT TYPE="hidden" name="MAX_FILE_SIZE" value="100000">
<!--size in bytes-->
<input type=file name=xyz>

the file is then passed along with the other post_vars

hope this helps,

maf
0

Featured Post

How Do You Stack Up Against Your Peers?

With today’s modern enterprise so dependent on digital infrastructures, the impact of major incidents has increased dramatically. Grab the report now to gain insight into how your organization ranks against your peers and learn best-in-class strategies to resolve incidents.

Question has a verified solution.

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

If you get a (Blue Screen of Death), your system writes a small file called a minidump. Your first step is to make certain your computer is setup to record memory dumps. Right click My Computer, choose properties. Click on the advanced tab, an…
A quick Powershell script I wrote to find old program installations and check versions of a specific file across the network.
The viewer will learn how to count occurrences of each item in an array.
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.

726 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