Welcome Guest, Not a member yet? Register   Sign In
Is file selected checking
#1

(This post was last modified: 03-14-2015, 11:37 PM by rejoan.)

Hi,
Is there any way to check is user browse file for upload or not? currently I am doing with this
PHP Code:
if($_FILES && $_FILES['avatar']['name']){...} 

Shouldn't there is a codeigniter way to do this? this is need because when user will select file for upload then validation operation will work. i.e file upload option is optional
The largest Bengali tutorial site on Web Development in this planet
Reply


Messages In This Thread
Is file selected checking - by rejoan - 03-14-2015, 11:35 PM
RE: Is file selected checking - by spjonez - 03-15-2015, 07:52 AM



Theme © iAndrew 2016 - Forum software by © MyBB