tag:blogger.com,1999:blog-10678074.post7645408978962964375..comments2024-03-29T07:24:07.258+00:00Comments on making apps, making webs.: Multiple file uploads with html 5, cherrypy 3.2 and firefox 3.6beta5.Unknownnoreply@blogger.comBlogger2125tag:blogger.com,1999:blog-10678074.post-4489493377651902912010-01-07T13:38:01.120+00:002010-01-07T13:38:01.120+00:00ah ok, that would be great :)
Personally, I (some...ah ok, that would be great :)<br /><br />Personally, I (sometimes) prefer it to always be a list, just so you only have one type of code handling. But I imagine the single item case is the most common use case - and it would be backwards compatible.<br /><br />You can use 'multiple' on many types of input with html5. So it should probably not just be files handled this way.<br /><br />Also, now I see it would be fairly trivial to support php array variable handling with cp 3.2. Just using a tool in that same place that parses the variable names. That is when variables are called:<br /><br />name='something[0]' value='a'<br />name='something[1]' value='b'<br />name='something[anotherkey]' value='c'<br /><br />Then you get this:<br />something == {'0':'a', '1':'b', 'anotherkey':'c'}<br /><br /><br />cu,René Dudfieldhttps://www.blogger.com/profile/17762358075557755436noreply@blogger.comtag:blogger.com,1999:blog-10678074.post-84929152900068175592010-01-07T06:11:53.069+00:002010-01-07T06:11:53.069+00:00I like it. We should adopt your change as the defa...I like it. We should adopt your change as the default behavior for 3.2, IMO. However, we should probably change it to behave like "x-www-form-urlencoded" entities do, where a single value gets returned as-is (not in a list), and multiple values with the same name in a list.fumanchuhttps://www.blogger.com/profile/12100140919727858844noreply@blogger.com