开发者

Scala/Lift - Cannot access image uploaded until jetty is restart

开发者 https://www.devze.com 2023-04-09 19:01 出处:网络
I created a file upload form, the form will take an image fi开发者_如何转开发le from user then save it in the webapp/images/ directory.

I created a file upload form, the form will take an image fi开发者_如何转开发le from user then save it in the webapp/images/ directory.

The problem is I cannot access the image uploaded by user until jetty is restarted.

Is there anything I should add to the code? Do I need to add anything on the sitemap?

Thanks for the help


try '~jetty-run' instead of 'jetty-run' when running the jetty server from sbt

0

精彩评论

暂无评论...
验证码 换一张
取 消