summaryrefslogtreecommitdiff
path: root/views/index.slim
diff options
context:
space:
mode:
Diffstat (limited to 'views/index.slim')
-rw-r--r--views/index.slim15
1 files changed, 15 insertions, 0 deletions
diff --git a/views/index.slim b/views/index.slim
new file mode 100644
index 0000000..270f91f
--- /dev/null
+++ b/views/index.slim
@@ -0,0 +1,15 @@
+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
+ul
+ - @files.each do |file|
+ li
+ a href='files/#{file}' #{file}