files-admin-code-tce-functions-upload

It appears that you are using AdBlocking software. The cost of running this website is covered by advertisements. If you like it please feel free to a small amount of money to secure the future of this website.

tce_functions_upload.php

Tags
file

Functions to upload files.

author

Nicola Asuni

since
2001-11-19

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
$filename :

(string) the filename

Tags
author

Nicola Asuni

since
2001-11-19
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
author

Nicola Asuni

since
2010-06-12
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
$filetocheck :

(string) file to check (local path or URL)

Tags
author

Nicola Asuni

since
2001-11-19
Return values
mixed

file size in bytes or false in case of error

On this page
 

© 2004-2024 – Nicola Asuni - Tecnick.com - All rights reserved.
about - disclaimer - privacy