I tried to specify attachments.path property in my application.conf file, but this had no effects.
In the documentation of play 2.0.1 I didn't find anything explaining how to change uploaded files directory.
Am I missing something?
I tried to specify attachments.path property in my application.conf file, but this had no effects.
In the documentation of play 2.0.1 I didn't find anything explaining how to change uploaded files directory.
Am I missing something?
Although there is no such variable in
application.conf
you can easily add it and use in your method. Call it as you wish ie:new line in
application.conf
:according to the documentation sample:
Using this approach you can or even should perform
filename clash
check before renaming, to prevent random overwriting.