Changeset 6071 for trunk/prototype/modules/mail
- Timestamp:
- 05/02/12 16:30:34 (12 years ago)
- Location:
- trunk/prototype/modules/mail
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/prototype/modules/mail/interceptors/Attachments.php
r5637 r6071 5 5 public function encodeCreateAttachment( &$uri , &$params , &$criteria , $original ){ 6 6 if(!isset($params['source'])) return false; 7 7 8 8 9 if(isset($_FILES[$params['source']])) 9 10 $params = $_FILES[$params['source']]; 10 11 12 if($params['error'] !== 0){ 13 switch ($params['error']){ 14 case 1: 15 throw new Exception('Tamanho de arquivo nao permitido!!! (php.ini)'); 16 case 2: 17 throw new Exception('Tamanho de arquivo nao permitido!!!'); 18 case 3: 19 throw new Exception('Ocorreu um erro durante o upload'); 20 case 4: 21 throw new Exception('Nao e um arquivo valido'); 22 } 23 } 24 11 25 $params['owner'] = Config::me('uidNumber'); 12 26 -
trunk/prototype/modules/mail/templates/attachment.ejs
r5785 r6071 1 < form id="fileupload_msg<%=data.ID%>" class="fileupload" action="mailAttachment:detail" method="POST">1 <div id="fileupload_msg<%=data.ID%>" class="fileupload" style="margin : 15px 0px -15px -10px;"> 2 2 <div class="row fileupload-buttonbar"> 3 3 <div class="button-files-upload"> … … 17 17 </div> 18 18 <br /> 19 </ form>19 </div>
Note: See TracChangeset
for help on using the changeset viewer.