Changeset 6625 for trunk/admin/include/uploadify
- Timestamp:
- Jun 29, 2010, 8:42:11 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/admin/include/uploadify/uploadify.php
r6054 r6625 12 12 13 13 ob_start(); 14 echo '$_FILES'."\n"; 14 15 print_r($_FILES); 16 echo '$_POST'."\n"; 15 17 print_r($_POST); 18 echo '$user'."\n"; 16 19 print_r($user); 17 20 $tmp = ob_get_contents(); 18 21 ob_end_clean(); 19 22 // error_log($tmp, 3, "/tmp/php-".date('YmdHis').'-'.sprintf('%020u', rand()).".log"); 23 24 if ($_FILES['Filedata']['error'] !== UPLOAD_ERR_OK) 25 { 26 $error_message = file_upload_error_message($_FILES['Filedata']['error']); 27 28 add_upload_error( 29 $_POST['upload_id'], 30 sprintf( 31 l10n('Error on file "%s" : %s'), 32 $_FILES['Filedata']['name'], 33 $error_message 34 ) 35 ); 36 37 echo "File Size Error"; 38 exit(); 39 } 40 41 ob_start(); 20 42 21 43 $image_id = add_uploaded_file( … … 41 63 ); 42 64 65 $output = ob_get_contents(); 66 ob_end_clean(); 67 if (!empty($output)) 68 { 69 add_upload_error($_POST['upload_id'], $output); 70 } 71 43 72 echo "1"; 44 73 ?>
Note: See TracChangeset
for help on using the changeset viewer.