JStream::upload
Upload a file
Signature
public function upload(string
$src,
[string
$dest = null,
[resource
$context = null,
[boolean
$use_prefix = true,
[boolean
$relative = false]]]] )
Parameters
-
$src
- The file path to copy from (usually a temp folder).
-
$dest
- The file path to copy to.
-
$context
- A valid context resource (optional) created with stream_context_create.
-
$use_prefix
- Controls the use of a prefix (optional).
-
$relative
- Determines if the filename given is relative. Relative paths do not have JPATH_ROOT stripped.
Returns
- mixed