Documentation

Light-weight, fast, simple and powerful!
 
Translations of this page?:

Upload.php helper

Introduction

The Upload helper is a way for you to add simple file upload functionality to Wolf CMS.

This helper is still under development, and does not yet work.

Class Attributes and Variables

Variable Default Description
$max_size 0; Maximum allowed file size (exclusive). No limit if zero.
$max_width 0; Maximum allowed image width (exclusive). No limit if zero.
$max_height 0; Maximum allowed image height (exclusive). No limit if zero.
$allowed_types ””; Not implemented. (Requires mimes.php, which does not exist.)
$file_temp ””; Path to the temporary file ($_FILES[file]['tmp_name']).
$file_name ””; Uploaded file name.
$orig_name ””; Uploaded file name before rename (to avoid rewrite).
$file_type ””; Uploaded file MIME type.
$file_size ””; Uploaded file size.
$file_ext ””; Uploaded file extension.
$upload_path ””; Path where the file will be uploaded.
$overwrite false; If TRUE, $file_name will be appended with a number, if necessary, to avoid overwriting an existing file.
$encrypt_name false; If TRUE, $file_name will be assigned a random value.
$is_image false; Set to TRUE if the uploaded file is an image.
$image_width ””; Uploaded image width.
$image_height ””; Uploaded image height.
$image_type ””;
$image_size_str ””;
$error_msg array();
$mimes array(); Not implemented. (Requires mimes.php, which does not exist.)
$remove_spaces true;
$xss_clean false;
$temp_prefix “temp_file_”;
 
helpers/upload.txt · Last modified: 2011-09-17 01:41 by ejsexton82
 
Except where otherwise noted, content on this wiki is licensed under the following license:GNU Free Documentation License 1.2
Copyright 2010 wolfcms.org / design by yello studio / Wolf CMS Inside