I recently started using a new server for a client and am having problems with file uploads in PHP.
Everything in the past has worked but now it does not.
$path= "wedding_uploads/".$HTTP_POST_FILES['sliderfile']['name'];
if($ufile !=none){
if(copy($HTTP_POST_FILES['sliderfile']['tmp_name'], $path)){
Anyone know what’s wrong with this?
Any help would be appreciated,
Thanks!
I’ve not come across this method of uploading before, I always use
move_uploaded_file(). And it’s not clear what your$ufilevariable is.I tend to use something like: