Welcome Guest, Not a member yet? Register   Sign In
file uploaded check
#3

[eluser]alphane[/eluser]
Setting it as a required field using form_validation will mean the user has to replace an image every single time.

You can determine whether a file has been uploaded using either the file objects error code or file size as so:
Code:
if ( $_FILE['yourfile']['size'] > 0 )
{
    //the user has selected a file
}


Messages In This Thread
file uploaded check - by El Forum - 04-15-2010, 05:59 PM
file uploaded check - by El Forum - 04-15-2010, 09:20 PM
file uploaded check - by El Forum - 04-16-2010, 02:38 AM
file uploaded check - by El Forum - 04-16-2010, 04:08 PM
file uploaded check - by El Forum - 04-16-2010, 04:25 PM



Theme © iAndrew 2016 - Forum software by © MyBB