Ejemplo n.º 1
0
 public static void uploadFile(String filename, File file) {
   User user = User.find("byEmail", Security.connected()).first();
   Upload uploadObj = new Upload();
   uploadObj.UploadFile(filename, user, file);
   Admin.upload();
 }
Ejemplo n.º 2
0
 public static void upload() {
   Upload upload = Upload.getLastUploadedFile();
   render(upload);
 }