A controller function of My play application can create a pdf file if a link within the application is used. This is working very well in development mode. However, I need to know where to save that pdf file so if my application is running in production mode then that pdf file will be able to be created by my controller's function and also be downloadable. I was thinking on using:
import com.typesafe.sbt.packager.MappingsHelper._
mappings in Universal ++= directory(baseDirectory.value / "public")
in my build.sbt file and somehow save that pdf file there but as I understand this folder is mainly for static resources needed before the application is running. Am I right? Is there a better way?