我正在使用播放框架2.1.0,将文件上传到play-app/upload
文件夹。我运行play 'start -Dhttp.port=80'
启动服务器。在播放框架中读取上传文件
但是当我上传文件到play-app/upload
文件夹,它不能立即访问。
如果我停止服务器并重新启动,那么我可以访问该文件。
我该如何解决这个问题?非常感谢。
ps的,我下面的路线/upload
:
GET /upload/*file controllers.Assets.at(path="/upload", file)
难道是静态的文件被加载一次?我该如何解决它?
,但我不能直接访问整个像HTTP文件://localhost/upload/xxx.doc – navins 2013-03-27 10:20:55