Function __global->handle_upload_post_processing
Definitions
sources/uploads.php
- Does post-processing of a new upload into the system.
- Is abstract?: No
- Is static?: No
- Is final?: No
- Return: string
Parameters
Name | Type | Default | Set | Range | Description |
---|---|---|---|---|---|
$enforce_type | integer | required parameter | N/A | N/A | The type of upload it is (bitmask, from CMS_UPLOAD_* constants) |
$path | PATH | required parameter | N/A | N/A | The disk path of the upload. Should be a temporary path that is deleted by the calling code |
$upload_folder | ID_TEXT | required parameter | N/A | N/A | The folder name in uploads/ where we would normally put this upload, if we weren't transferring it to the CDN |
$filename | string | required parameter | N/A | N/A | Filename to upload with. May not be respected, depending on service implementation |
$obfuscate | integer | 0 | N/A | N/A | Whether to obfuscate file names so the URLs can not be guessed/derived (a OBFUSCATE_* constant) |
$accept_errors | boolean | False | N/A | N/A | Whether to accept upload errors |
Return
- URL on syndicated server (null: did not syndicate)
- Type: ?URLPATH
- Set: N/A
- Range: N/A