Upload
This is one function that uploads and validates files, crop/resize images among other features.
Parameters
$options explanation
Usage
use Simcify\File;
File::upload(
"https://example.com/image.png",
"books",
array(
"source" => "url",
"extension" => "png"
"allowedExtesions" => "png, jpg, gif",
"crop" => array(
"width" => "300",
"height" => "300"
),
"resize" => array(
"maxWidth" => "300",
"maxHeight" => "300"
)
)
)Response
Last updated