I have a script in php and i'm trying to upload audio files with it, and later i want to use it to upload video files as well but it doesn't let me do that. I changed upload_max_filesize = 2000M just to be sure but it's still not working.
here is my script:
><?php
>if (isset($_FILES["file"]))
>{
> echo "<p>"."Upload: " . $_FILES["file"]["name"] ."</p>". "<br>";
> echo "Type: " . $_FILES["file"]["type"] . "<br>";
> echo "Size: " . ($_FILES["file"]["size"] / 1024) . " kB<br>";
> echo "Stored in: " . $_FILES["file"]["tmp_name"];
> $uploaddir = '../audio/';
> $file = basename($_FILES['file']['name']);
> $uploadfile = $uploaddir . $file;
>
> print_r($_FILES);
>
> if (move_uploaded_file($_FILES['file']['tmp_name'], $uploadfile))
> {
> echo "it's mine!";
> }
> else
> {
> echo "sh*t!";
> }
>}
>?>
what can i do? I also checked juploade but i can't find any documentation on how to use it.
also, if i try to upload txt or other small files it works.