destpath = "files/"; // name of the input field form tag, see below $u->formfieldname = "users_file"; // howmuch files are allowed to upload $u->maxfiles = 3; // which types of files are allowed to upload $u->allowedtypes = array("pdf","txt","jpg"); // how big can each file be //$u->maxfilesize = 20000000; // sign that aren't allowed to use in filenames // this sign are replaced with "" if in the name // write it like an regex $u->verbosesign = "[[:space:]]|[\"\*\\\'\%\$\&\@\<\>]"; // fine thing, if you need this class for puplic upload, // it can be usefull to be sure that each file has an unique filename // setting this to TRUE will generate unique name like 1321342342342.jpg // in the destpath, and save it in the log array $u->uniquefilenames = TRUE; // und upwiththeshit $u->ProceedUpload(); print_r ($u->log); // will log like; /* Array ( [status] => Array // shows if upload as ok or not, and wich error is happend ( [0] => File is valid, and was successfully uploaded. [1] => File is valid, and was successfully uploaded. [2] => File is valid, and was successfully uploaded. ) [filename] => Array // the new name of the files if $u->uniquefilenames = TRUE; ( [0] => 4796857011.jpg [1] => 4796857012.jpg [2] => 4796857013.jpg ) [clientfilename] => Array // the old name of the files ( [0] => seite1.jpg [1] => seite2.jpg [2] => seite3.jpg ) ) */ } ?>