954,597 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

file uploading

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...
mehdi.yazdani
Light Poster
25 posts since Oct 2011
Reputation Points: 10
Solved Threads: 0
 

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

catherine sea
Junior Poster
126 posts since Jan 2008
Reputation Points: 25
Solved Threads: 20
 

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

mehdi.yazdani
Light Poster
25 posts since Oct 2011
Reputation Points: 10
Solved Threads: 0
 

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

mehdi.yazdani
Light Poster
25 posts since Oct 2011
Reputation Points: 10
Solved Threads: 0
 

Find you PHP.INI file as catherine sea stated.

pritaeas
Posting Expert
Moderator
5,484 posts since Jul 2006
Reputation Points: 653
Solved Threads: 875
 

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

mehdi.yazdani
Light Poster
25 posts since Oct 2011
Reputation Points: 10
Solved Threads: 0
 

i think u used an upload class
u can edit class setting

eng.naguib
Newbie Poster
13 posts since Nov 2011
Reputation Points: 10
Solved Threads: 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

mehdi.yazdani
Light Poster
25 posts since Oct 2011
Reputation Points: 10
Solved Threads: 0
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: