Solved

<FORM> and <INPUT type=FILE> WOES!!!

Posted on 1998-09-04
1
132 Views
Last Modified: 2012-05-07
Is there any way to have the <input type=file> "browse" button take in a users filename and on submission it doesn't upload the file right away. But at a later time (on another form) i can set the <input type=file> to what the user set  previously and have it automatically upload then?
0
Comment
Question by:aniston
1 Comment
 
LVL 8

Accepted Solution

by:
jbirk earned 50 total points
ID: 1837365
Well, I don't think you aren going to like the answer.  Input type=file is a strange input type because it can have so many security problems.  So for these reasons you can't access the value of or set the value of the input field in JavaScript (of course HTML has no control of these things either).  Perhaps VBScript or ActiveX will let you but those are IE only.

So since this value can't be read or written, you can't save it's value or defer it until later.

Sorry,
Josh
0

Featured Post

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

SASS allows you to treat your CSS code in a more OOP way. Let's have a look on how you can structure your code in order for it to be easily maintained and reused.
Not sure what the best email signature size is? Are you worried about email signature image size? Follow this best practice guide.
In this tutorial viewers will learn how to define a gradient in CSS. Create a new HTML document with an internal stylesheet.: Create a div in CSS and name it Gradient. Define the background as "linear-gradient(to right, #ee3668, black)". Ensure you …
In this tutorial viewers will learn how add a scalable full-width header using CSS3. Create a new HTML document with an internal stylesheet. Set a tiled background.:  Create a new div and name it Header. Position it with position:absolute at the top…

757 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

18 Experts available now in Live!

Get 1:1 Help Now