PHP File Upload -


i have code needs see if file has been selected before runs code .... pretty simple code, not working reason , cant see why. code follows

if(isset($_files['filename'])){ $directory = 'uploads/'.substr(md5(microtime() * mktime()),0,15);  if(!is_dir($directory)){     mkdir($directory, 0777, true);     chmod($directory, 0777); } 

}

i have multiple file fields coded so:

<input class="file-input" name="filename[]" type="file" size="32" /> 

when move code outside 'if(isset......' block, works perfect .... not inside it, , thats need it.

can see im going wrong?

oh dear .... figured problem.

yes thats right folks .... forgot change type of form multipart.

feel free throw things @ me!!!

thanks anyways guys!


Comments

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -