Flask Web 应用程序中的 Javascript 图像上传器/选择器?
我正在尝试用 Flask 制作一个基本的 CMS,现在我正在考虑图像。我将在内容区域使用 javascript 编辑器(如 TinyMCE 或 CKedit),但我希望能够上传图像并使用图像选择器将它们插入到文本编辑器字段中。
我可以在网上找到这方面的小文章,但我可以找到任何带有 python 后端的东西。有人知道我可以使用什么吗?如果它只是一个 javascript 选择器和上传表单,那没关系——我可以制作 python 后端。
提前致谢
I'm trying to make a basic CMS with flask and I'm now thinking about images. I am going to use a javascript editor for the content area (like TinyMCE or CKedit), but I want to be able to upload images and have an image picker to insert them into the text editor field.
I can find little scrips for this around the net, but I can find anything with a python back end. Does anybody know of anything I could use? If it's just a javascript picker and upload form, that's ok—I can make the python back end.
Thanks in advance
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
Flask文档中的这个页面在底部推荐了一些丰富的UI解决方案以及如何正确处理文件上传。还有扩展 Flask-Uploads,它允许您上传“集合”中的资源。
This page in the flask documentation recommends some rich UI solutions at the bottom as well as how to properly handle file uploads. There's also the extension Flask-Uploads which allows you to upload your assets in "sets".