Jump to content

Upload IMG file using internal IPS API and $_FILES PHP


Recommended Posts

I am trying to upload IMG file using internal IPS API and $_FILES php:

<?php
$_SERVER['SCRIPT_FILENAME']    = __FILE__;
require_once 'init.php';

$init = \IPS\Session\Front::i();

$image = \IPS\Image::create( $_FILES['file']['tmp_name'] );
echo $image;
?>

this sadly doesn't work, anyone know which API is used?

thanks

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...