使用multer图像上载用React上传

发布于 2025-01-23 20:24:47 字数 672 浏览 2 评论 0 原文

我已经观看了20个有关如何用React上传图像的视频,即使我尝试了多种解决方案,但仍然没有成功。 我将Node.js用于后端和MySQL作为数据库。 我真的很感谢您的帮助,因为我过去三天一直被困在这里:/

这是我的后端设置Multer。 [1]: https://i.sstatic.net/e3yw6.png 这是我的前端。 [2] https://i.sstatic.net/qgkm0.png

我的项目也是我的项目(如果以这种方式更容易) - https://github.com/dimadeloseros1/prooseos1/proipt7-proomania

I have watched like 20 videos of how to upload an image with React and still have no success even though i have tried multiple solutions.
I am using Node.js for the Backend and Mysql as a database.
I'd really appreciate some help as i've been stuck here for the last 3 days now :/

This is my Backend where Multer is set. [1]: https://i.sstatic.net/e3YW6.png
This is my Frontend where React is. [2] https://i.sstatic.net/qgKm0.png

Also my Project is (in case if it's easier that way) - https://github.com/dimadeloseros1/Project7-Groupomania

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文