Posted: 19th Jan 2023 15:48
Hi, I wish to load an image that is in a folder on the server the html5 runs on. Preferably a subfolder. Is this achievable?
Posted: 10th Feb 2023 11:59
You have to write a third-party script, for example in php, which you will call from agk, this script will upload files to the folder you specified on the server.
Posted: 10th Feb 2023 18:52
You can build a REST api. The php script below can be used to server up images (even from outside the web root).

You can call up an image like so:

http://myserver.com/script.php?i=image.jpg

This is just a basic example good for testing, but wouldn't use in production without some extra security in place (sanitizing the input)

+ Code Snippet
<?php

$file = '/path_on_server/'.$_GET['i'];

header('Content-Type:image/jpeg');
header('Content-Length: ' . filesize($file));

readfile($file);

?>