Solved

file transfer to server

Posted on 2000-04-08
1
204 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

What Is Transaction Monitoring and who needs it?

Synthetic Transaction Monitoring that you need for the day to day, which ensures your business website keeps running optimally, and that there is no downtime to impact your customer experience.

Question has a verified solution.

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

In this tutorial I will focus on how to use WhizBase as a tool for sending ICQ messages to ICQ. Here I will use a new technology in WhizBase, published in WhizBase 5.1 version. In this tutorial I will use 3 files, pager.wbsp for the processing, e…
A quick Powershell script I wrote to find old program installations and check versions of a specific file across the network.
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

728 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