mirror of
https://github.com/torrentpier/torrentpier-lts.git
synced 2025-02-28 15:10:54 +03:00
Update posting_attachments.php
This commit is contained in:
parent
ef2e2a7e64
commit
7af6b3e23e
@ -843,8 +843,10 @@ class attach_parent
|
||||
$file = $_FILES['fileupload']['tmp_name'];
|
||||
$this->type = $_FILES['fileupload']['type'];
|
||||
|
||||
// Обработка ошибок при загрузке файла на сервер
|
||||
if (isset($_FILES['fileupload']['error']))
|
||||
{
|
||||
// В зависимости от типа ошибки, выводим пользователю сообщение
|
||||
switch ($_FILES['fileupload']['error'])
|
||||
{
|
||||
case UPLOAD_ERR_NO_FILE:
|
||||
|
Loading…
Reference in New Issue
Block a user