You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if (isset($_SERVER['CONTENT_LENGTH']) && $_SERVER['REQUEST_METHOD'] === 'PUT') {
244
244
$expected = (int)$_SERVER['CONTENT_LENGTH'];
245
-
if ($count !== $expected) {
246
-
thrownewBadRequest('Expected filesize of ' . $expected . ' bytes but read (from Nextcloud client) and wrote (to Nextcloud storage) ' . $count . ' bytes. Could either be a network problem on the sending side or a problem writing to the storage on the server side.');
245
+
if ($writtenByteCount !== $expected) {
246
+
thrownewBadRequest('Expected filesize of ' . $expected . ' bytes but read (from Nextcloud client) and wrote (to Nextcloud storage) ' . $writtenByteCount . ' bytes. Could either be a network problem on the sending side or a problem writing to the storage on the server side.');
247
247
}
248
248
}
249
249
} catch (\Exception$e) {
@@ -307,7 +307,7 @@ public function put($data) {
307
307
}
308
308
309
309
// since we skipped the view we need to scan and emit the hooks ourselves
0 commit comments