[whatwg] Uploading directories of files

On Fri, 11 Dec 2009 15:24:37 +0100, Ian Fette (????????)  
<ifette at google.com> wrote:
> Ok, I sense resistance to putting it in .name. What about .path,  
> undefined
> in most cases except where there is an upload including files from  
> multiple
> directories, in which case .path contains the path less any path  
> components
> common to all 3 (sorry, it's early morning and I can't write well before
> having coffee).
>
> e.g.
>
> input.files[0].name="1.jpg"
> input.files[0].path="a/b"
> input.files[1].name="2.jpg"
> input.files[1].path="a/b"
> input.files[2].name="3.jpg"
> input.files[2].path="a/c"
>
> (Need to figure out the exact wording, as "a" is common to all 3 but if
> you're uploading the entire directory "a", it may make sense to include  
> that
> in the path -- but I don't feel quite as strongly about that --  
> subfolders
> are certainly more important IMO.)

Note that extensions to File should be discussed on public-webapps at w3.org.  
At least, that's where they have been so far.


-- 
Anne van Kesteren
http://annevankesteren.nl/

Received on Friday, 11 December 2009 06:28:35 UTC