473,385 Members | 1,311 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Setting a default value for the input type file?

Hi,

I'm building a system where a presenter uploads a PPT to my server and
then I show it to all the participants. The problem is that most of the
media in the PPT is usually linked, so I'll need to upload all that
too. Assuming I can parse the PPT and figure the exact name and
location of each of the media files I need from his hard-disk, is there
any way I can upload all these files automatically, without having to
make the user choose each of these files manually? If that's not
possible, can I atleast show the user a page with a list of input boxes
of type file, pre-populated with the file-path and name of the media
files I need, so that the user can just click 'Submit' without having
to browse and select each of them?

Please say yes. It would be a major usability crisis if my users had to
keep hitting the browse button so many times for each PPT! Especially
when I know exactly what files I need and where they are! I know that
this has a lot to do with browser security, but there's got to be SOME
way out?

Thanks,

Sep 21 '06 #1
3 4604

ra****@gmail.com wrote:
Hi,

I'm building a system where a presenter uploads a PPT to my server and
then I show it to all the participants. The problem is that most of the
media in the PPT is usually linked, so I'll need to upload all that
too. Assuming I can parse the PPT and figure the exact name and
location of each of the media files I need from his hard-disk, is there
any way I can upload all these files automatically, without having to
make the user choose each of these files manually? If that's not
possible, can I atleast show the user a page with a list of input boxes
of type file, pre-populated with the file-path and name of the media
files I need, so that the user can just click 'Submit' without having
to browse and select each of them?

Please say yes. It would be a major usability crisis if my users had to
keep hitting the browse button so many times for each PPT! Especially
when I know exactly what files I need and where they are! I know that
this has a lot to do with browser security, but there's got to be SOME
way out?

Thanks,
Unfortunately, the file input field does not allow you populate it
using default values. This is due to security considerations. Also,
it isn't possible to "grab" files from a users hard drive through an
ASP script processing on the server. Think of the major security
problems that would cause! I could write a script to search the hard
drives of every browser of my site for quickbooks files, etc and upload
them to my server. Fortunately, this isn't possible.

My solution to this problem would be to only allow zip files to be
uploaded (use a script to check the 3 letter file extension of the
uploaded file). Then use a commercially available unzip component to
extract the files into a folder on your server. All this can be done
through an ASP page. Here is a link to an article on unzipping files
in ASP:
http://classicasp.aspfaq.com/general...-from-asp.html

Best of Luck!
Mike Biang
Cramer Development
mi********@gmail.com

Sep 21 '06 #2
Thanks a lot, Mike. I guess I'd be better off with a signed Java applet
that does all the uploading for me though; my users wont be too happy
with a zip-up-and-upload approach.
mi********@gmail.com wrote:
Unfortunately, the file input field does not allow you populate it
using default values. This is due to security considerations. Also,
it isn't possible to "grab" files from a users hard drive through an
ASP script processing on the server. Think of the major security
problems that would cause! I could write a script to search the hard
drives of every browser of my site for quickbooks files, etc and upload
them to my server. Fortunately, this isn't possible.

My solution to this problem would be to only allow zip files to be
uploaded (use a script to check the 3 letter file extension of the
uploaded file). Then use a commercially available unzip component to
extract the files into a folder on your server. All this can be done
through an ASP page. Here is a link to an article on unzipping files
in ASP:
http://classicasp.aspfaq.com/general...-from-asp.html

Best of Luck!
Mike Biang
Cramer Development
mi********@gmail.com
Sep 21 '06 #3
Why not use a web dav folder and drag and drop the files in one go?
<ra****@gmail.comwrote in message
news:11**********************@h48g2000cwc.googlegr oups.com...
Hi,

I'm building a system where a presenter uploads a PPT to my server and
then I show it to all the participants. The problem is that most of the
media in the PPT is usually linked, so I'll need to upload all that
too. Assuming I can parse the PPT and figure the exact name and
location of each of the media files I need from his hard-disk, is there
any way I can upload all these files automatically, without having to
make the user choose each of these files manually? If that's not
possible, can I atleast show the user a page with a list of input boxes
of type file, pre-populated with the file-path and name of the media
files I need, so that the user can just click 'Submit' without having
to browse and select each of them?

Please say yes. It would be a major usability crisis if my users had to
keep hitting the browse button so many times for each PPT! Especially
when I know exactly what files I need and where they are! I know that
this has a lot to do with browser security, but there's got to be SOME
way out?

Thanks,

Sep 22 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: dmiller23462 | last post by:
Here is the code, it's not complete of course....I've been inserting lines as I go to pinpoint the issue.....I understand that the error message I'm getting (#185 Missing Default Property) is...
2
by: Jim Witte | last post by:
Hi, How do I set a file input element? If it's a text input, I can set the value property. But this doesn't work with file inputs. And no, I can't change it - I'm writing a script to...
18
by: Dixie | last post by:
Can I set the Format property in a date/time field in code? Can I set the Input Mask in a date/time field in code? Can I set the Format of a Yes/No field to Checkbox in code? I am working on...
1
by: laredotornado | last post by:
Hi, I'm using PHP 4.4.4 on Apache 2 on Fedora Core 5. PHP was installed using Apache's apxs and the php library was installed to /usr/local/php. However, when I set my "error_reporting"...
8
by: hanseymoon | last post by:
How do you create a text input box, which shows a default value of 1+ and blocks the user from deleting it? Thanks so much! :))
1
by: swarnap | last post by:
I have a control on me screen of type <FILE>. I want to set some value to that object from the database. I tried the following code using html. <html > <head> <script type="text/javascript"> ...
12
by: Doogie | last post by:
How do I make a value the default value for a combo box in ASP 3.0? What I have below does NOT work, yet I've seen it in HTML file examples before (and works if I put it in a HTML file by itself,...
5
by: jose1lm | last post by:
What is supposed to happen: A user enters data into one of the FORM input selections. When the user submits the form, the onclick event is supposed to go to a function that will set another FORM...
8
by: Andrus | last post by:
..NET 2 Winforms application. How to create new setting and set it default value in userSettings section of app.config file or overwrite existing setting value ? I found code below in this list...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.