upload file and text in loopback

ぐ巨炮叔叔 提交于 2019-12-24 23:32:50

问题


Hello guys i m new too loopback, so don't know if it is possible or not

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

Demo image of form:

This demo form i m try to save to database using model rest api (model named as product)

Note: just try to save input text field and file path url. i have created a container, using container i can easly upload a file to folder name as storage/file inside server folder. hHow I can do that? Any suggestion would be great

来源:https://stackoverflow.com/questions/49322580/upload-file-and-text-in-loopback

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!