W3C home > Mailing lists > Public > public-html@w3.org > July 2011

[Bug 13119] New: Make the @value attribute in <input> when type="file" work as a suggestion for the OS file picker

From: <bugzilla@jessica.w3.org>
Date: Sat, 02 Jul 2011 10:53:50 +0000
To: public-html@w3.org
Message-ID: <bug-13119-2495@http.www.w3.org/Bugs/Public/>
http://www.w3.org/Bugs/Public/show_bug.cgi?id=13119

           Summary: Make the @value attribute in <input> when type="file"
                    work as a suggestion for the OS file picker
           Product: HTML WG
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: HTML5 spec (editor: Ian Hickson)
        AssignedTo: ian@hixie.ch
        ReportedBy: brunoaiss@gmail.com
         QAContact: public-html-bugzilla@w3.org
                CC: mike@w3.org, public-html-wg-issue-tracking@w3.org,
                    public-html@w3.org


I'd like to request to allow the value attribute to specify the text that
appears in the filename section in the filepicker when the filepicker is
opened.

What happens here is the following:
I, webmaster, write this code:
<input type="file" accept="image/jpg" name="thisfile" value="somefolder/file">

The browser interprets as the following:
When the input tag is created its value should be the empty string (just like
it is according to the actual specification).

When the file picker is opened it should filter the file list according to the
accept attribute (just like it is now) and (this part is now) should fill the
filename space with the string that is inside value.

This can be used in may situations. Including:
Sending the user directly to the images folder
Sending the user directly to his documents folder
Sending the user directly to his desktop
Send the file picker to its last folder (the folder it was when it was last
closed) (like a: download this file, change it and then upload it)

Also, allowing the the javascript to change the @value property would be
useful, still it would only change the file picker text and never the value
(filepath) itself.

This might need a slight improvement but I think, with a little discussion this
could have good uses. If this has good uses for applications like word, paint,
etc... it should also have applications to internet websites. Specially sites
that takes care of content management (like cloud computing?)

-- 
Configure bugmail: http://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
Received on Saturday, 2 July 2011 10:53:53 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 9 May 2012 00:17:36 GMT