Scala/Lift - 在码头重新启动之前无法访问上传的图像

发布于 2024-12-07 08:21:30 字数 151 浏览 4 评论 0原文

我创建了一个文件上传表单,该表单将从用户那里获取图像文件,然后将其保存在 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

如果没有你 2024-12-14 08:21:30

从 sbt 运行 jetty 服务器时尝试使用 '~jetty-run' 而不是 'jetty-run'

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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文