H
H
hollanditkzn2017-04-25 13:15:01
Yii
hollanditkzn, 2017-04-25 13:15:01

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

2 answer(s)
H
hollanditkzn, 2017-04-25
@hollanditkzn

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]);

Nothing occurs in the Error model , that is, this problem occurs when uploading to the server
Started about yesterday and the image was attached

M
Maxim Timofeev, 2017-04-25
@webinar

yii2 engine

It's a framework, not an engine
Describe the problem in detail. At what point and what displays such an error? Attach the controller code and write which widget you are using. Enable the output of all errors on the server to receive specific errors, if any.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question