replacing old uploader
This commit is contained in:
@@ -32,6 +32,7 @@
|
||||
<?php
|
||||
if(isset($_GET["cloudprint"])){
|
||||
echo("<script>let cloudprint=1;</script>");
|
||||
echo '<script>fetch("/api/uploader/image_preview.php?file='.$_GET["cloudprint"].'").then(res => res.text()).then(data => document.getElementById("preview").src = "data:image/png;base64," + data).catch(err => console.error("Error:", err));</script>';
|
||||
}else{
|
||||
echo("<script>let cloudprint=0;</script>");
|
||||
}
|
||||
@@ -53,6 +54,11 @@
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
<?php
|
||||
if(isset($_GET["cloudprint"])){
|
||||
echo('<center><img style="display:block; width:100%" id="preview"/></center>');
|
||||
}
|
||||
?>
|
||||
<div class="mb-3">
|
||||
<label for="selectOption" class="form-label">Drucker</label>
|
||||
<select class="form-select" id="selectOption">
|
||||
|
||||
Reference in New Issue
Block a user