Scala/Lift - 在码头重新启动之前无法访问上传的图像
我创建了一个文件上传表单,该表单将从用户那里获取图像文件,然后将其保存在 webapp/images/ 目录中。
问题是在码头重新启动之前我无法访问用户上传的图像。
我应该在代码中添加什么吗?我需要在站点地图上添加任何内容吗?
感谢您的帮助
I created a file upload form, the form will take an image file 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
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
从 sbt 运行 jetty 服务器时尝试使用 '~jetty-run' 而不是 'jetty-run'
try '~jetty-run' instead of 'jetty-run' when running the jetty server from sbt