problem when uploading file
Posted
by Syom
on Stack Overflow
See other posts from Stack Overflow
or by Syom
Published on 2010-04-09T16:20:05Z
Indexed on
2010/04/09
16:23 UTC
Read the original article
Hit count: 147
i have the form, and i want to upload two files. here is the script
<form action="form.php" method="post" enctype="multipart/form-data" />
<input type="file" name="video" />
<input type="file" name="picture" >
<input type="submit" class="input" value="?????" />
<input type="hidden" name="MAX_FILE_SIZE" value="100000000" />
</form>
form.php:
<?
print_r($_FILES);
$video_name = $_FILES["video"]["name"];
$image_name = $_FILES["picture"]["name"];
echo "video",$video_name;
echo "image",$image_name;
//returns Array ( ) videoimage
?>
when i try to upload the file greater than 10MB, it doesn't happen. i try in many browsers. maybe i must change some field in php.ini? but i haven't permission to change them on the server. so what can i do? thanks
© Stack Overflow or respective owner