Discussions
How to compose an Action for multipart upload with Subject Present?
almost 8 years ago by Michael Read
First, Steve, excellent library. Kudo! I just love Deadbolt! However, I haven't figured this out:
@ https://www.playframework.com/documentation/2.5.x/ScalaFileUpload describes how to upload a file from the browser:
def upload = Action(parse.multipartFormData) { request =>
...
}
How would you compose a deadbolt subject present action with parse.multipartFormData starting from :
def logoUploadPost = actionBuilder.SubjectPresentAction().defaultHandler() { implicit request =>
...
}
It seems like it's too late to provide the alternate parser... Maybe something in the Dynamic arena?
Thanks much...