aboutsummaryrefslogtreecommitdiffstats
path: root/include/attach.php
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2020-10-31 20:30:36 +0000
committerMario <mario@mariovavti.com>2020-10-31 20:30:36 +0000
commitb55c7f794b06d45f3b9cdb2f8a4ce7d99aaf8902 (patch)
tree95ed2e76d040e856a7ec72abf0c1079542661107 /include/attach.php
parent5580fc1954a63f861644e2de3773fbb3adfa8f2c (diff)
parent205279f7f877c10abf80715c55db83d2c2852eab (diff)
downloadvolse-hubzilla-b55c7f794b06d45f3b9cdb2f8a4ce7d99aaf8902.tar.gz
volse-hubzilla-b55c7f794b06d45f3b9cdb2f8a4ce7d99aaf8902.tar.bz2
volse-hubzilla-b55c7f794b06d45f3b9cdb2f8a4ce7d99aaf8902.zip
Merge branch 'dev' into 5.0RC
Diffstat (limited to 'include/attach.php')
-rw-r--r--include/attach.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/attach.php b/include/attach.php
index 80f71b9ea..c9649a4ce 100644
--- a/include/attach.php
+++ b/include/attach.php
@@ -2807,6 +2807,12 @@ function save_chunk($channel,$start,$end,$len) {
$new_path = $new_base . '/' . $_FILES['files']['name'];
+ if(file_exists($new_path) && intval($start) === 0) {
+ $result['partial'] = true;
+ $result['length'] = intval(filesize($new_path));
+ return $result;
+ }
+
if(! file_exists($new_path)) {
rename($tmp_path,$new_path);
}