I am trying to upload file using internal IPS api and $_FILES php:
<?php
$_SERVER['SCRIPT_FILENAME'] = __FILE__;
require_once 'init.php';
$init = \IPS\Session\Front::i();
echo "Filename: " . $_FILES['file']['name']."<br>";
echo "Type : " . $_FILES['file']['type'] ."<br>";
echo "Size : " . $_FILES['file']['size'] ."<br>";
echo "Temp name: " . $_FILES['file']['tmp_name'] ."<br>";
echo "Error : " . $_FILES['file']['error'] . "<br>";
$image = \IPS\Image::create( $_FILES['file']['tmp_name'] );
echo $image;
?>
this sadly doesn't work, anyone know which API is used? thanks