package controllers;

import play.*;
import play.mvc.*;

import views.html.*;

public class Application extends Controller {

    public static Result index() {
        return ok(index.render("Your new application is ready."));
    }

}

@@ -72,16 +72,38 @@
 tml.*;%0A%0A
+import java.io.File;%0A%0A
 public c
@@ -250,10 +250,140 @@
 %0A    %7D%0A%0A
+    public static Result upload() %7B%0A      File file = request().body().asRaw().asFile();%0A      return ok(%22uploaded file%22);%0A    %7D%0A%0A
 %7D%0A

add upload function