-
Notifications
You must be signed in to change notification settings - Fork 0
Handling files
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:
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.