We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 73a9615 + 50275f1 commit bfccb86Copy full SHA for bfccb86
controllers/OpenController.php
@@ -26,7 +26,7 @@ public function actionUpdate()
26
$this->forcePostRequest();
27
$fileContent = Yii::$app->request->post('content');
28
$this->file->store->setContent($fileContent);
29
- $this->file->size = strlen($fileContent);
+ $this->file->size = strlen((string) $fileContent);
30
$this->file->save();
31
32
return [
0 commit comments