Solved

file transfer to server

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

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

This tutorial will discuss fancy secure registration forms, with AJAX technology support. In this article I assume you already know HTML and some JS. I will write the code using WhizBase Server Pages, so you need to know some basics in WBSP (you mig…
This article will show, step by step, how to integrate R code into a R Sweave document
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

635 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