Ignore:
Timestamp:
Apr 27, 2009 3:24:11 AM (4 years ago)
Author:
alec
Message:
  • fix attachment mimetype setting after upload
  • move style of delete button in attachment-list to mail.css file
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/roundcubemail/program/steps/mail/attachments.inc

    r2401 r2431  
    8080      'path' => $filepath, 
    8181      'name' => $_FILES['_attachments']['name'][$i], 
    82       'mimetype' => rc_mime_content_type($tmpfname, $_FILES['_attachments']['type'][$i]) 
     82      'mimetype' => rc_mime_content_type($filepath, $_FILES['_attachments']['type'][$i]) 
    8383    ); 
    8484 
    8585    $attachment = $RCMAIL->plugins->exec_hook('upload_attachment', $attachment); 
     86 
    8687    if ($attachment['status']) { 
    8788      $id = $attachment['id']; 
     
    9495        $button = html::img(array( 
    9596          'src' => $icon, 
    96           'alt' => rcube_label('delete'), 
    97           'style' => "padding-right:2px;vertical-align:middle", 
     97          'alt' => rcube_label('delete') 
    9898        )); 
    9999      } 
Note: See TracChangeset for help on using the changeset viewer.