Domanda

Starting Play 2.2 the getFile root directory is target/universal/stage/ instead of the projects root folder. In our project we uploaded files to the <root>/uploads folder. But after updating to Play 2.2 these uploads are inaccessible.

Is it desired that uploads are stored in target/universal/stage? I believe not, since those folders are created on build and we can therefore don't be sure these folders remain in place.

È stato utile?

Soluzione

Play specifically does not support this.

See this recent discussion from the mailing list: https://groups.google.com/forum/#!topic/play-framework/iHwp1FIjZbw

As noted by the Play maintainers in that discussion, a frontend server like nginx running in front of Play is the recommended approach.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top