update index.html
This commit is contained in:
parent
827dec718b
commit
b2131b547d
@ -5,8 +5,8 @@
|
||||
document.getElementById("result").innerHTML = "Dodawanie pliku..."
|
||||
var data = new FormData()
|
||||
data.append('file', document.getElementById("docpicker").files[0])
|
||||
document.getElementById("result").innerHTML = "Proszę chwilę poczekać, zaraz wypluje info o fakturze :)"
|
||||
resp = await fetch('http://IP_ADDRESS_HERE:80/invoice', {method: "POST", body: data})
|
||||
document.getElementById("result").innerHTML = "Przetwarzanie faktury ... "
|
||||
resp = await fetch('http://54.172.196.142:80/invoice', {method: "POST", body: data})
|
||||
document.getElementById("result").innerHTML = "Info"
|
||||
data = await resp.json()
|
||||
var result = JSON.stringify(data)
|
||||
|
Loading…
Reference in New Issue
Block a user