Quote:
Originally Posted by divineangel
Hi.
My php codes work well in Windows for uploading images but it doesn't seem to work on Linux server. Do you know the reason why? If yes, please reply to this post. Thank you.
|
Here's the fragment of my code for saving the file:
else if ($action == "SAVE") {
define('IMAGE_PATH',DIR_FS_COMMON.'images/');
$arr_data = array();
$ImageFileName = date('Ymdhms').$_FILES['BANNER_IMAGE']['name'];
if ($ImageFileName != '')
$arr_data["BANNER_IMAGE"] = $ImageFileName;
$arr_data["BANNER_URL"] = $_POST["BANNER_URL"];
$arr_data["BANNER_URL_JP"] = $_POST["BANNER_URL_JP"];
$con_banner_obj = new ConBanner();
$con_banner_obj->save($arr_data);
if ($ImageFileName != '')
move_uploaded_file($_FILES['BANNER_IMAGE']['tmp_name'], IMAGE_PATH.$ImageFileName);
header('location:index.php');
}
the filename is passed to 'BANNER_IMAGE', i wasn't thinking about case sensitivity.