0

Hi every body

i was create some forms for uploading files.
when i tried to upload some files with less than a MB there is no problem and it works well but when the size of file that i want to upload it, is over than 10 MB i faced with undefined error for my file field . please help me with this problem .

/* DETAILS OF FILESOURCE  */
$namefile=$_FILES['file2']['name']; 
$tmpfile=$_FILES['file2']['tmp_name'];
$sizefile=$_FILES['file2']['size'];
$typefile=$_FILES['file2']['type'];
/* END OF DETAILS */	

copy("$tmppic", "newspictures/$namepic")

//insert query and etc...
4
Contributors
7
Replies
8
Views
5 Years
Discussion Span
Last Post by mehdi.yazdani
1

The possible cause of the issue should be the size limit on your server side.

You can change the value at the following line in the php.ini file and try again.
upload_max_filesize = 20M

0

i tested in local with easy php too.
what about easy php ?
where can i find the php.ini file in the local

0

How can i find and change size limitation ?
also i 'm working in local in easy php
help me ????

0

please give me the php code that u used in your uploading function
Maybe i can find some reason for this

0

i didn't do that .
i found upload_max_filesize = 2M in the server side in php configuration but as i said the problem still in the local side too even when i tested with easy php . i think that this is a kind of default limitation for uploading some files that contain huge amount of size . i couldn't find how to edit or changing this restriction

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.