hotline#95613 : redmine add download attachment
Merged
requested to merge hotline#95613_vincent_acces_aux_pieces_jointes_de_la_forge_via_bokeh into hotline
4 unresolved threads
Merge request reports
Activity
Filter activity
174 174 } 175 175 } 176 176 177 public function downloadFileAction() { 178 $this->getHelper('ViewRenderer')->setNoRender(); 179 $library = Class_Bib::find($this->_getParam('id_lib', 0)); 180 $service = new Class_WebService_Redmine($library); 181 $fileid = $this->_getParam('fileid'); 182 $filename = $this->_getParam('filename'); 183 return $service->downloadFile($fileid, $filename, $this->_response); changed this line in version 2 of the diff
27 27 'password_hash', 28 28 'extension_loaded', 29 29 'libxml_use_internal_errors', 30 'libxml_get_errors']); 30 'libxml_get_errors', 31 'curl_exec', changed this line in version 2 of the diff
20 20 */ 21 21 22 22 class Class_WebService_Redmine extends Class_WebService_Abstract { 23 use Trait_Translator; 23 use Trait_Translator, Trait_StaticPhpCommand; changed this line in version 2 of the diff
386 386 } 387 387 388 388 389 public function downloadFile($fileid, $filename, $response) { 390 $client = $this->getClient(); 391 $path = '/attachments/download/'.$fileid.'/'.$filename; 392 $curl = $client->prepareRequest($path); changed this line in version 2 of the diff
added 1 commit
- d12f6928 - hotline#95613 : redmine add download attachment
mentioned in commit e2b152e6