- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
- 25
- 26
- 27
if(is_uploaded_file($_FILES["filename"]["tmp_name"]) and (substr($_FILES["filename"]["type"],0,6)=="audio/") and ($_FILES["filename"]["error"]=="0") )
{
if ($_FILES["filename"]["error"]==1)
{
$model_add->delete();
$this->render('index',array('error'=>$lang->Translate(1232), 'model'=>$model));
die();
}
if ($_FILES["filename"]["error"]==2)
{
$model_add->delete();
$this->render('index',array('error'=>$lang->Translate(1232), 'model'=>$model));
die();
}
if ($_FILES["filename"]["error"]==3)
{
$model_add->delete();
$this->render('index',array('error'=>$lang->Translate(1234), 'model'=>$model));
die();
}
if ($_FILES["filename"]["error"]==4)
{
$model_add->delete();
$this->render('index',array('error'=>$lang->Translate(1235), 'model'=>$model));
die();
}
}
Проверка ошибок. Чтоб уж наверняк.
Комментарии (0) RSS
Добавить комментарий