mirror of
https://github.com/Piwigo/Piwigo.git
synced 2025-04-26 11:19:55 +03:00
Merge 9c10b3973b
into ee0d29a0e9
This commit is contained in:
commit
92dac85d19
1 changed files with 1 additions and 1 deletions
|
@ -1746,7 +1746,7 @@ function ws_images_upload($params, $service)
|
|||
// file_put_contents('/tmp/plupload.log', "[".date('c')."] ".__FUNCTION__.', '.$fileName.' '.($chunk+1).'/'.$chunks."\n", FILE_APPEND);
|
||||
|
||||
// Open temp file
|
||||
if (!$out = @fopen("{$filePath}.part", $chunks ? "ab" : "wb"))
|
||||
if (!$out = @fopen("{$filePath}.part", $chunks && $chunk != 0 ? "ab" : "wb"))
|
||||
{
|
||||
die('{"jsonrpc" : "2.0", "error" : {"code": 102, "message": "Failed to open output stream."}, "id" : "id"}');
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue