D
D
DmitryLife2020-12-28 09:52:35
ubuntu
DmitryLife, 2020-12-28 09:52:35

Why can't images be transferred from tmp on hosting?

Good afternoon.

There is such a problem, I was given access via FTP from the subcategory where I uploaded the site. This site accepts files and must save data to an internal folder.

I don't have root access.

The problem is that I don’t have to check whether the data is saved in TMP. But obviously there is a problem, because

move_uploaded_file($file['tmp_name'], $path . $name)

returns false.

At the same time, the script works perfectly on my server. Where to even look?
Also on client hosting, I can't use constants, including (__DIR__)

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question