Deadbolt for Scala

The Deadbolt for Scala Developer Hub

Welcome to the Deadbolt for Scala developer hub. You'll find comprehensive guides and documentation to help you start working with Deadbolt for Scala as quickly as possible, as well as support if you get stuck. Let's jump right in!

Get Started    
Ask A Question

Questions

How to compose an Action for multipart upload with Subject Present?

Posted by Michael Read 7 months ago

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...

Loading comments...