大家好,我是新环回,所以不知道是否可能

<form>
  <input type="text" id name="product">
  <input type="text" id name="productdesc">
  <input type="file" id name="product">
</form>

表格的演示形象:

enter image description here

这个演示表单我尝试使用模型rest api保存到数据库(模型名为product)

Note: 只是尝试保存输入文本字段和文件路径网址 . 我创建了一个容器,使用容器我可以轻松地将文件上传到文件夹名称作为服务器文件夹中的存储/文件 . 我怎么能这样做?任何建议都会很棒