Any example on how to post a file to a remote server, by using app.request ?
Let’s assume I would like to upload to a file called “test.jpg” a JPG image whose content is stored in variable myjpg
.
How can I do this with F7 ?
Any example on how to post a file to a remote server, by using app.request ?
Let’s assume I would like to upload to a file called “test.jpg” a JPG image whose content is stored in variable myjpg
.
How can I do this with F7 ?
Hi, here you have a post that you could use as reference
Let me know if it helps you.
Already seen that thread, but I don’t know how to create the “formData” object to use for upload
I my case i didn’t have a form, so i made a new form data and append the data;
eg:
let data = new FormData()
data.append('file', this.file)
this.file is my <input type='file'/>
I don’t have a file to choose with input.file but i have a file content inside a variable