In my app I load files and pass it to JavaScript with:
<input type="file" multiple onchange="mixer.photo.readfiles(this.files)" />
Then, JavaScript use the file object and I do some stuff in JavaScript.
My problem is that I also want to do the same thing FROM an URL parameter (url of an image) : Let's say people arrive to my website with the url https://mywebsite.com?img=imgurl.png I want to handle this imgurl.png, and load it to my javascript exactly the same way that I load a file coming from my "input type=file"
Then, when people will arrive in my page using a url with parameter, they will not need to upload with the
if(isset($_GET['img'])){echo $_GET['img']; }else{ echo "this.files";}are you looking for something like this ?