From d4ccdf736f536b420aceeb6cb8589495cd2e4a34 Mon Sep 17 00:00:00 2001 From: Tobias Bühlmann Date: Sun, 25 Apr 2010 13:46:42 +0200 Subject: initial commit --- views/index.haml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 views/index.haml (limited to 'views/index.haml') diff --git a/views/index.haml b/views/index.haml new file mode 100644 index 0000000..51e4781 --- /dev/null +++ b/views/index.haml @@ -0,0 +1,14 @@ +%h1 Sinatra File Upload + +- if @flash + = @flash + +%form{:action => '/upload', :method => 'post', :enctype => 'multipart/form-data'} + %p< + %input{:type => 'file', :name => 'file'} + %p< + %input{:type => 'submit', :value => 'Upload'} + +%h3 Files +- @files.each do |file| + = "#{file}" -- cgit v1.2.3