tce_functions_upload.php
Tags
Table of Contents
Functions
- F_is_allowed_upload() : true
- Check if the uploaded file extension is allowed.
- F_upload_file() : mixed
- Uploads image file to the server.
- F_read_file_size() : mixed
- returns the file size in bytes
Functions
F_is_allowed_upload()
Check if the uploaded file extension is allowed.
F_is_allowed_upload( $filename)
: true
Parameters
Tags
Return values
true —in case of allowed file type, false otherwise
F_upload_file()
Uploads image file to the server.
F_upload_file( $fieldname,
$uploaddir)
: mixed
Parameters
- $fieldname :
-
(string) form field name containing the source file path
- $uploaddir :
-
(string) upload directory
Tags
Return values
mixed —file name or false in case of error
F_read_file_size()
returns the file size in bytes
F_read_file_size( $filetocheck)
: mixed
Parameters
Tags
Return values
mixed —file size in bytes or false in case of error