Thanks for the response.
Main Topics
Browse All TopicsHello. I am new to BV and have run into a problem that I desperately need answered. I need the ability to allow a user to browse for a file on the desktop to be written/uploaded to the /tmp directory on the server. I have added the following code in my javascript to allow the user to browse:
<form action="./uploadfile.jsp" method="POST" enctype="multipart/form-da
<INPUT TYPE="file" NAME="userfile" SIZE="35" MAXLENGTH="255">
<INPUT TYPE="submit" VALUE="Process" NAME="ProcData">
</form>
However, when the uploadfile.jsp is invoked, the BVI_Request is empty. There is an error in the log and the contents of the file is written to the log. How can I capture the contents in my uploadfile.jsp javascript? I need to write the file to the server for ftping to an appropriate dropbox area. Here is the log entry that results when run this (note: the contents of the file is merely This is a test):
Fri Feb 21 07:33:57 2003 (1045841637.003046) bvsmgr[14979]@zerg:<18.0>:
Request::split: couldn't split --------------------------
Content-Disposition: form-data; name="userfile"; filename="D:\Profiles\Khei
Content-Type: application/octet-stream^M
^M
This is a test.^M
--------------------------
Content-Disposition: form-data; name="ProcData"^M
^M
Process^M
--------------------------
Check for precisely one '=' character
I would really appreciate any assistance you can provide. Thanks.
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Business Accounts
Answer for Membership
by: adelimonPosted on 2003-04-16 at 08:22:03ID: 8341644
I don't believe this is possible in JavaScript. You'll need to take another route. Depending on your version of BV there are two options:
1. Use Java to do uploads. This is what you probably SHOULD do. But it only works on BV version 6.0 and up becuase you will need to write a servlet.
2. Write a perl script on your webserver, and post to that. This takes you outside of BV but it does work.