Changeset 334 for trunk/lib/Upload.inc.php
- Timestamp:
- May 13, 2008 4:14:53 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/Upload.inc.php
r303 r334 38 38 'dest_dir_perms' => 0700, 39 39 40 // Require file to have one of the following file name exten tions.40 // Require file to have one of the following file name extensions. 41 41 'valid_file_extensions' => array('jpg', 'jpeg', 'gif', 'png', 'pdf', 'txt', 'text', 'html', 'htm'), 42 42 ); … … 118 118 * @param string $form_name The name of the form to process. 119 119 * @param string $custom_file_name The new name of the file. An array of filenames in the case of multiple files. 120 * @return mixed Returns FALSE if a major error occur ed preventing any file uploads.121 * Returns an empty array if any minor errors occur ed or no files were found.122 * Returns a multidimen tional array of filenames, sizes and extentions, if one-or-more files succeeded uploading.120 * @return mixed Returns FALSE if a major error occurred preventing any file uploads. 121 * Returns an empty array if any minor errors occurred or no files were found. 122 * Returns a multidimensional array of filenames, sizes and extensions, if one-or-more files succeeded uploading. 123 123 * Note: this last option presents a problem in the case of when some files uploaded successfully, and some failed. 124 124 * In this case it is necessary to check the Upload::anyErrors method to discover if any did fail. … … 442 442 443 443 /** 444 * Determin tes if any errors occured while calling the Upload::process method.444 * Determines if any errors occurred while calling the Upload::process method. 445 445 * 446 446 * @access public … … 471 471 472 472 /** 473 * Returns the exten tion of a file name, or an empty string if non exists.474 * 475 * @access public 476 * @param string $file_name A name of a file, with exten tion after a dot.473 * Returns the extension of a file name, or an empty string if non exists. 474 * 475 * @access public 476 * @param string $file_name A name of a file, with extension after a dot. 477 477 * @return string The value found after the dot 478 478 */
Note: See TracChangeset
for help on using the changeset viewer.