Skip to content
Snippets Groups Projects
Commit 65af2b07 authored by Alexandre Morin's avatar Alexandre Morin Committed by Giovannoni Laurent
Browse files

Fix zip

parent 72b00c63
No related branches found
No related tags found
No related merge requests found
...@@ -61,7 +61,9 @@ class Extract ...@@ -61,7 +61,9 @@ class Extract
public function download($full_path) { public function download($full_path) {
$file_name = basename($full_path); $file_name = basename($full_path);
header('Content-Description: File Transfer');
header('Content-Type: application/octet-stream');
header('Content-Tranfer-Encoding: fichier'); header('Content-Tranfer-Encoding: fichier');
header('Content-Length: '.filesize($full_path)); header('Content-Length: '.filesize($full_path));
header('Content-Type: application/force-download'); header('Content-Type: application/force-download');
......
...@@ -33,7 +33,6 @@ function get_form_txt($values, $path_manage_action, $id_action, $table, $module ...@@ -33,7 +33,6 @@ function get_form_txt($values, $path_manage_action, $id_action, $table, $module
$result = $archiveTransfer->deleteMessage($values); $result = $archiveTransfer->deleteMessage($values);
$result = $archiveTransfer->receive($values); $result = $archiveTransfer->receive($values);
$db = new Database(); $db = new Database();
......
function actionSeda($path) { function actionSeda($path) {
new Ajax.Request($path, window.open($path);
{
method:'post',
parameters: { url : $path,
},
onSuccess: function(answer) {
eval("response = "+answer.responseText);
if(response.status == 0){
var btn = $('<input type="button" value="_VALIDATE"/>');
$("validSeda").append(btn);
} else {
alert(response.error);
eval(response.exec_js);
}
// $('loading_' + target).style.display='none';
}
});
} }
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment