This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

question about creating custom App
#6
(22.02.2023, 14:10)admin Wrote: Use this JavaScript as a starting point:
Code:
async function send() {
  var formdata = new FormData();
  var url = '/scada-main/general/restore';
  var el = document.getElementById('file');

  formdata.append('file', el.files[0]);

  var resp = await fetch(url, {
    method: 'POST',
    headers: { 'X-Requested-With': 'XMLHttpRequest' },
    body: formdata
  });

  var res = await resp.json();
  console.log(res);
}

Where should I write the path of the project file i want to restore ?
Reply


Messages In This Thread
RE: question about creating custom App - by benjii - 27.02.2023, 13:16

Forum Jump: