Problem with uploaded file

From: Date: Sun, 26 Sep 2004 12:01:54 +0000
Subject: Problem with uploaded file
Groups: php.general 
Request: Send a blank email to php-general+get-197870@lists.php.net to get a copy of this message
Hello folks, I'm facing some sort of problem here. I'm uploading a file from the clients system to the server. Everything working fine except that the file that is being uploaded is having a file permission of 600 ie only read and write to the owner only. So i'm not able to change the permissions (either with some ftp client or thru the file manager on the server) nor am i able to download the file even. Is there any way that i can set permissions to the files that are being uploaded.?? here is the code is used... $uploaddir = './photos/'; print "<pre>"; $arr_basename=explode(".",$_FILES['userfile0']['name']); $file_type=$arr_basename[1]; $nameofphoto=$profileid."1.".$file_type; @move_uploaded_file($_FILES['userfile0']['tmp_name'], $uploaddir . $nameofphoto); $uploaddir = './photos/'; print "<pre>"; $arr_basename=explode(".",$_FILES['userfile1']['name']); $file_type=$arr_basename[1]; $nameofphoto1=$profileid."2.".$file_type; @move_uploaded_file($_FILES['userfile1']['tmp_name'], $uploaddir . $nameofphoto1); $uploaddir = './photos/'; print "<pre>"; --- plzz help me out.. /sagar

« previous php.general (#197870) next »