fix upload
# Conflicts: # rust/src/webserver/webserver.rs
This commit is contained in:
@@ -33,6 +33,9 @@ ajax.addEventListener("abort", () => {
|
||||
|
||||
|
||||
battery_flash_button.onclick = async function (){
|
||||
ajax.open("POST", "/flashbattery");
|
||||
//ajax.open("POST", "/flashbattery");
|
||||
//ajax.send(battery_flash_file.files[0]);
|
||||
|
||||
ajax.open("POST", "/flashbattery?flash=true");
|
||||
ajax.send(battery_flash_file.files[0]);
|
||||
};
|
||||
|
Reference in New Issue
Block a user