Can someone help me understand why this is returning false?
if ((move_uploaded_file($_FILES[$field][\'tmp_name\'], $path))) {
As in, potent
Basic debugging steps:
print_r($_FILES)
look like? $path
look like? My guess is that $path
is only a path to a folder, not to a full file name.
Update: You need to specify a filesystem path as $path.