Changeset 35 for trunk/lib/Upload.inc.php
- Timestamp:
- Dec 13, 2005 7:43:12 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/Upload.inc.php
r34 r35 300 300 // To keep this script running even if user tries to stop browser. 301 301 ignore_user_abort(true); 302 if (!ini_get('safe_mode')) { 303 set_time_limit(300); 304 } 302 ini_set('max_execution_time', 300); 303 ini_set('max_input_time', 300); 305 304 306 305 $new_file_names = array(); … … 347 346 // If the file name has no extension, use the mime-type extension. 348 347 if (!preg_match('/\.[^.]{1,5}$/', $file_name) && function_exists('mime_content_type')) { 349 if ($ext = array_search(mime_content_type($files['t ype'][$i]), $this->mime_extension_map)) {348 if ($ext = array_search(mime_content_type($files['tmp_name'][$i]), $this->mime_extension_map)) { 350 349 $file_name .= ".$ext"; 351 350 }
Note: See TracChangeset
for help on using the changeset viewer.