controllers
Class UploadController
java.lang.Object
controllers.UploadController
public class UploadController
- extends Object
Field Summary |
org.slf4j.Logger |
logger
This is the system wide logger. |
Method Summary |
Result |
upload()
|
Result |
uploadFinish(Context context)
This upload method expects a file and simply displays the file in the
multipart upload again to the user (in the correct mime encoding). |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
logger
@Inject
public org.slf4j.Logger logger
- This is the system wide logger. You can still use any config you like. Or
create your own custom logger.
But often this is just a simple solution:
UploadController
@Inject
public UploadController(MimeTypes mimeTypes)
upload
public Result upload()
uploadFinish
public Result uploadFinish(Context context)
throws Exception
- This upload method expects a file and simply displays the file in the
multipart upload again to the user (in the correct mime encoding).
- Parameters:
context
-
- Returns:
-
- Throws:
Exception
Copyright © 2012. All Rights Reserved.