mirror of
https://github.com/Piwigo/Piwigo.git
synced 2025-04-26 19:29:58 +03:00
Further flush before download, #1297 follow-up
See
db65aa51d5 (commitcomment-67982862)
that confirms this works better.
This commit is contained in:
parent
fedd6c4b42
commit
dd44d0e409
1 changed files with 8 additions and 7 deletions
15
action.php
15
action.php
|
@ -210,21 +210,22 @@ else
|
|||
.basename($file).'";';
|
||||
}
|
||||
|
||||
foreach ($http_headers as $header)
|
||||
{
|
||||
header( $header );
|
||||
}
|
||||
|
||||
// Looking at the safe_mode configuration for execution time
|
||||
if (ini_get('safe_mode') == 0)
|
||||
{
|
||||
@set_time_limit(0);
|
||||
}
|
||||
|
||||
// Without clean and flush there may be some image download problems, or image can be corrupted after download
|
||||
if (ob_get_length() !== FALSE)
|
||||
{
|
||||
ob_clean();
|
||||
flush();
|
||||
ob_flush();
|
||||
}
|
||||
flush();
|
||||
|
||||
foreach ($http_headers as $header)
|
||||
{
|
||||
header( $header );
|
||||
}
|
||||
|
||||
@readfile($file);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue