Solved

Pass multiple values thorugh input box

Posted on 2003-11-03
21
318 Views
Last Modified: 2008-01-09
What code is necessary to have an input box that allows multiples files to be opened?
I have  been reading and I from what i have read it says that internet explorer does not allow it unless there is some server side programming done.

this is what i currently have for this portion of the web page

<FORM action=writeFile2.asp method=post encType=multipart/form-data>
<INPUT type=file size=50 name=FILE1><BR>

what ever means necessary to get this to work even another web language
0
Comment
Question by:jrisi03
[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
  • 8
  • 7
  • 6
21 Comments
 
LVL 46

Expert Comment

by:fritz_the_blank
ID: 9670632
Why don't you use more than one input, i.e., one for each file? Also, what do you mean by opened? Are you trying to upload these files, get the paths? I am not sure what you would like to happen.

FtB
0
 

Author Comment

by:jrisi03
ID: 9670729
its about 2,700 files that need to be uploaded a day. i can do an input box for each but thats not efficient. Yes I am uploading these files.
0
 
LVL 46

Expert Comment

by:fritz_the_blank
ID: 9670746
Ah, I see!

Are you using an upload component of some sort like ASPUpload or SAUp?

FtB
0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 

Author Comment

by:jrisi03
ID: 9670823
aspSmartUpload so basically aspupload
0
 
LVL 58

Expert Comment

by:Gary
ID: 9670996
To do file uploads you need one File input box for each file to be uploaded and you can't circumvent the File upload tag.  For that many files you may need to find another way - like FTP.
0
 
LVL 46

Expert Comment

by:fritz_the_blank
ID: 9670997
I am looking to see if there is any way to batch the files programitically, i.e., use FSO to read the directory, create the form with all of the values and submit, but I don't think that will work.

Is there any reason you aren't using FTP given how many files that you are moving? It would be faster...
0
 

Author Comment

by:jrisi03
ID: 9671319
Military Specifications
We cant use ftp
I was browsing through yahoo mail and their input box has it
this is the code
are they calling on something to be able to pull multiple files

<form method=post enctype="multipart/form-data" action="/filemanager/upload">
<input type="hidden" name="directory" value="">
<input type="hidden" NAME="dispopts" VALUE="html, gif, jpg, other;;*">

0
 
LVL 58

Expert Comment

by:Gary
ID: 9671478
Checked Yahoo and they use seperate File tags for each file to upload
0
 

Author Comment

by:jrisi03
ID: 9672845
YOUR RIGHT SORRY I WASNT PAYING ATTENTION.
IS IT POSSIBLE TO IMPLEMENT AN FTP GUI
????
0
 
LVL 58

Expert Comment

by:Gary
ID: 9672872
How many people are we talking about here that will uploading files?
0
 
LVL 58

Expert Comment

by:Gary
ID: 9672952
I was thinking more about giving people ftp access to the folder on the server and giving them an FTP program to use.  Would be faster for the uploading of files.
0
 

Author Comment

by:jrisi03
ID: 9673501
i say about 50 different acount across the United States
0
 

Author Comment

by:jrisi03
ID: 9673510
is it possible to run ftp commands through asp
0
 
LVL 58

Expert Comment

by:Gary
ID: 9673513
No asp is server side it doesnt exist at the client
0
 
LVL 46

Expert Comment

by:fritz_the_blank
ID: 9673549
What would be safer, then is to set up a PCAnywhere accounts that limit access to just one directory and let people transfer files that way. This will give you better security perhaps then just using a freeware/shareware FTP utility.

FtB
0
 

Author Comment

by:jrisi03
ID: 9680994
I just thought of something
how bout they select one file from the folder
and then i take that file path
and use that and do a path minus the file name
so it would be  some thing like
 D:\ssn\photo\usmc\*.*

does that sound right
and then the upload would take every file from there
0
 
LVL 58

Expert Comment

by:Gary
ID: 9681378
Ermm No.  That won't work.
0
 
LVL 46

Expert Comment

by:fritz_the_blank
ID: 9681465
The problem is how the posting thing works, so it is looking for a form with the multipart/formdata bit, otherwise nada.

Moreover, and I could be mistaken about this, but you can't set a default value to a file input, otherwise I would suggest code that would use FSO to loop through your directory and build the form with the values dynamically.

FtB
0
 
LVL 58

Expert Comment

by:Gary
ID: 9681477
You're right fritz, if you do try and set a value it will just blank it out when you submit the form.
0
 

Author Comment

by:jrisi03
ID: 9686153
that might work
i havent worked wit fso in asp
does it work that the same as in vb
let me see some code to get that to work
0
 
LVL 46

Accepted Solution

by:
fritz_the_blank earned 80 total points
ID: 9694798
I don't know if this is any good, but I came across a post with it:

http://www.jt-actuary.com/aspupload_samples_docs/SAMPLE_INDEX.HTM

FtB
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

I have helped a lot of people on EE with their coding sources and have enjoyed near about every minute of it. Sometimes it can get a little tedious but it is always a challenge and the one thing that I always say is:   The Exchange of informatio…
Hello, all! I just recently started using Microsoft's IIS 7.5 within Windows 7, as I just downloaded and installed the 90 day trial of Windows 7. (Got to love Microsoft for allowing 90 days) The main reason for downloading and testing Windows 7 is t…
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …

627 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