Solved

file transfer to server

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Introduction This tutorial will give you a fast look what you can do with WhizBase. I expect you already know how to work with HTML at least, and that you understand the basics of the internet and how the internet works. WhizBase is a server-s…
In this tutorial I will show you how to provide a dynamic RTF document on your website generated with data from your database. For this tutorial you will need Microsoft Word or WordPad, WhizBase and Microsoft Access. In this tutorial I will show …
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 …
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

920 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now