Skip to content

Commit

Permalink
Added multiple file input for testing
Browse files Browse the repository at this point in the history
  • Loading branch information
tj committed Feb 4, 2010
1 parent 2bbe573 commit 8181357
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
1 change: 0 additions & 1 deletion examples/upload/app.js
Expand Up @@ -8,7 +8,6 @@ configure(function(){
use(ContentLength)
use(CommonLogger)
set('root', __dirname)
enable('cache view contents')
})

get('/', function(){
Expand Down
13 changes: 3 additions & 10 deletions examples/upload/views/style.sass.css
Expand Up @@ -12,6 +12,8 @@ h1, h2
h1
:text-shadow 1px 2px 2px #ddd
:font-size 60px
h2
:margin-top 15px

#wrapper
:position relative
Expand Down Expand Up @@ -54,13 +56,4 @@ form
.panel
:float left
:width 100%
:clear both

a
:color #1ABFF1
:-webkit-transition-property padding
:-webkit-transition-duration 0.15s
a:hover
:padding 0 5px
a:hover:before
:content 'visit: '
:margin-bottom 15px
8 changes: 8 additions & 0 deletions examples/upload/views/upload.haml.html
Expand Up @@ -3,9 +3,17 @@
.images
:each img in images
%img{ src: img }

%h2 Singles
%form{ method: 'post', enctype: 'multipart/form-data' }
%input{ type: 'file', name: 'images[0]' }
%input{ type: 'file', name: 'images[1]' }
%input{ type: 'file', name: 'images[2]' }
.panel
%input{ type: 'submit', value: 'Upload' }

%h2 Multiple
%form{ method: 'post', enctype: 'multipart/form-data' }
%input{ type: 'file', name: 'images[]', multiple: 'multiple' }
.panel
%input{ type: 'submit', value: 'Upload' }

0 comments on commit 8181357

Please sign in to comment.