You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Easy compilation and upload can be performed from the icons at the bottom of the VSC screen or use `Ctrl` + `Alt` + `U` to upload (will build if needed).
53
62
63
+
The _upload.php_ file at your webserver could look like this:
64
+
```
65
+
<?php
66
+
$image = basename($_FILES["file"]["name"]);
67
+
$target_file = "./".$image;
68
+
$hostname = $_SERVER['SERVER_NAME'];
69
+
70
+
if (move_uploaded_file($_FILES["file"]["tmp_name"], $target_file)) {
71
+
echo "The file $image has been uploaded to OTA server $hostname. \n";
72
+
} else {
73
+
echo "Sorry, there was an error uploading your file $image to OTA server $hostname. \n";
74
+
}
75
+
?>
76
+
```
77
+
54
78
## *Hint:*
55
79
In case vscode shows a huge amount of errors using PlatformIO - Intellisense a possible "solution" is to change the cpp-Intelli Sense Engine type to "TAG PARSER"
0 commit comments