Skip to content
Daniel Golub edited this page Jun 27, 2014 · 2 revisions

In order to enable the "Upload" base class, head into the '/app/config.php' file, and edit line 22:

"enabled" => true,

You can also configure the lines below to adjust the limits to the uploading system.

Now lets get familiar with the basic file handling function:

generate($file, $path, $rename = false)

The generate function will save the uploaded image in a remote server.

  • The first parameter is the file itself (not its name, but $_FILES['somefile']).
  • The second parameter is the directory of the file (end it with slash).
  • (OPTIONAL) The third parameter determines whether the system needs to generate a new random file name.
Clone this wiki locally