The thing is, i upload a resource, if i choose a picture, php says: "Hey cool picture, nhom nhom thanks" and its moved to the correct folder etc. Then i try give him a zip with some bullet holes textures, and he says the same: "Hey cool zip, so tiny, nhom nhom, hum delicious" and php moves it without any effort. But i tried doing ANOTHER zip with some drawings from my friend and it says "file couldn't be moved", this error is caused by this line:
Code: Select all
if(mkdir("images/resources/files/" . $time))
{
if(!move_uploaded_file($file_tmp, "images/resources/files/" . $time . "/" . $file_name)) //Move our file to our file dir
{
$errors[] = "File couldn't be moved!";
}
}
Anyone can help?