Answer the question
In order to leave comments, you need to log in
Does not save the file writes the problem err_connection_reset?
I can not understand when you upload the file writes this problem. In this case, the yii2 engine is used. But I looked on the Internet, it says that if it does not go to the page, etc.
What to do in this case and how to fix this problem?
Attached files 8mb and 3mb
Answer the question
In order to leave comments, you need to log in
Yes, this is a framework
when you attach a file and save it to the database. There is a download and then the page comes out that the connection is reset. Accordingly, there is more detail about the problem and what is described there does not fit anything. writes err_connection_reset
in the controller
if ($model->load(Yii::$app->request->post())) {
$model->file = UploadedFile::getInstance($model, 'file');
if(isset($model->file))
{
$model->file->saveAs('maket/Maket_'.$model->id_zakaz.'.'.$model->file->extension);
$model->maket = 'Maket_'.$model->id_zakaz.'.'.$model->file->extension;
$model->status = 4;
}
$model->save();
return $this->redirect(['view', 'id' => $model->id_zakaz]);
yii2 engine
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question