问题
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