Class

Upload

Package: IO Copyright: © 2005-2019 PHPBoost License: GNU/GPL-3.0 Author: Regis VIARRE crowkait@phpboost.com Version: PHPBoost 5.2 - last update: 2018 03 23 Since: PHPBoost 1.6 - 2007 01 27 Contributor: Julien BRISWALTER j1.seth@phpboost.com Contributor: Arnaud GENET elenwii@phpboost.com Contributor: mipel mipel@phpboost.com Contributor: janus57 janus57@janus57.fr Located at: io/Upload.class.php

This class provides you methods to upload easily files to the ftp.

Methods summary
public
# __construct( string $base_directory = 'upload' )

constructor

public boolean
# file( string $filepostname, string $regexp = '', boolean $uniq_name = false, integer $weight_max = 100000000, boolean $check_exist = true )

Uploads a file.

public string
# check_img( string $width_max, integer $height_max, integer $delete = true, boolean $delete,… )

Checks whether an image is compliant to an maximum width and height, otherwise is $delete value is true delete it.

public float
# get_human_readable_size( integer $round = 1 )

Returns filesize in human readable representation.

public
public
public
public
public
public
# get_size( )
Constants summary
boolean UNIQ_NAME
# true
boolean NO_UNIQ_NAME
# false
boolean CHECK_EXIST
# true
boolean DELETE_ON_ERROR
# true
boolean NO_DELETE_ON_ERROR
# false
Annonces