These forums are currently read-only due to receiving more spam than actual discussion. Sorry.

It is currently Sat Dec 02, 2017 4:03 pm Advanced search

New idea for the INPUT element

Do you think the HTML spec should do something differently? You can discuss spec feedback here, but you should send it to the WHATWG mailing list or file a bug in the W3C bugzilla for it to be considered.

New idea for the INPUT element

Postby sean_dorman » Thu Jun 09, 2011 4:22 pm

I was working with a project that involves a content management system. The INPUT element has a type="file" that can be used for selecting a FILE, but it would be great if we could use type="folder" { even though it currently doesn't exist, to give application developers the ability to let users select folders rather than specific files, such as when they need to pick destinations for file downloads or set where an automated report will save.
sean_dorman
<h6>
 
Posts: 4
Joined: Thu Jun 09, 2011 4:06 pm

Re: New idea for the INPUT element

Postby zcorpan » Thu Jun 09, 2011 4:48 pm

What's your use case?
zcorpan
<article>
 
Posts: 807
Joined: Tue Feb 06, 2007 8:29 pm
Location: Sweden

Re: New idea for the INPUT element

Postby sean_dorman » Thu Jun 09, 2011 5:03 pm

One example of a use case would be to have an application ask the end user for a destination folder for downloads, and then programmatically take the value element ( IE "/docs/proposals/templates" ) to apply either cURL, PHP or an alternative language to perform a class function or code inherent to the page. While type="file" is useful, it can only dynamically be used as an "anchor" of sorts, subsequently truncating the value retrieved, when all the programmer really wants is a means of allowing users to select a folder destination when users change their default settings that are folder-specific.
sean_dorman
<h6>
 
Posts: 4
Joined: Thu Jun 09, 2011 4:06 pm

Re: New idea for the INPUT element

Postby zcorpan » Thu Jun 09, 2011 5:47 pm

zcorpan
<article>
 
Posts: 807
Joined: Tue Feb 06, 2007 8:29 pm
Location: Sweden

Re: New idea for the INPUT element

Postby sean_dorman » Thu Jun 09, 2011 6:05 pm

Reading through the File API specification, I couldn't find anything to do with the selection of a folder path. PLENTY of information regarding downloading and saving files, but nothing that allows an application developer to select a folder path and perform some action if said folder path is stored.
sean_dorman
<h6>
 
Posts: 4
Joined: Thu Jun 09, 2011 4:06 pm


Return to Feedback on the Specs

Who is online

Users browsing this forum: No registered users and 1 guest