Skip to content
Newer
Older
100644 25 lines (21 sloc) 586 Bytes
c60970c @jamesward Rename Upload to S3File
jamesward authored
1 @(s3Files: List[models.S3File])
5cfcf34 @jamesward init
jamesward authored
2 <!DOCTYPE html>
3
4 <html>
5 <head>
6 <title>File Upload with Java, Play 2, and S3</title>
7 <link rel="shortcut icon" type="image/png" href="@routes.Assets.at("images/favicon.png")">
8 </head>
9 <body>
10 <h1>Upload a file:</h1>
11
12 @helper.form(action = routes.Application.upload, 'enctype -> "multipart/form-data") {
13 <input type="file" name="upload">
14 <input type="submit">
15 }
16
17 <h1>Uploads:</h1>
18 <ul>
c60970c @jamesward Rename Upload to S3File
jamesward authored
19 @for(s3file <- s3Files) {
20 <li><a href="@s3file.getUrl()">@s3file.name</a></li>
5cfcf34 @jamesward init
jamesward authored
21 }
22 </ul>
23
24 </body>
25 </html>
Something went wrong with that request. Please try again.