By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,197 Members | 988 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,197 IT Pros & Developers. It's quick & easy.

can't upload file

P: 3
I'm using php5.2.2 and not able to upload file from mobile J2ME .
same code is running in php4.3.11 but not in php5.2.2

I'm uploading file by using $_FILES.

while using print_r($_FILES)
it display :
name of file ,type of file but error=3 and size=0

same script is successfully worked in php4.3.11 with apache2.0.59 but not in php5.2.2
Is there any extra configuration for php5.2.2 with apache2.0.59?
if yes, plz help me.
May 21 '07 #1
Share this Question
Share on Google+
2 Replies


Atli
Expert 5K+
P: 5,058
Moving this thread to the PHP Forums.
Please refrain from posting questions in the Article section!

MODERATOR
May 21 '07 #2

Atli
Expert 5K+
P: 5,058
Error 3 means that the file was only partially uploaded.
If the code did work on an older version of PHP, it is possible that you new version is limiting the size of the files you can upload.
Try looking through the php.ini and see if the max upload size is smaller than the file you are trying to upload.
May 21 '07 #3

Post your reply

Sign in to post your reply or Sign up for a free account.