File Upload

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
ashrafy84
Forum Newbie
Posts: 9
Joined: Tue Dec 23, 2008 4:29 am

File Upload

Post by ashrafy84 »

Hi every one,

I have come with one issue that, i have did all code for image uploading into a server. the function is working fine but issue is some image are not getting uploaded into server. because they not getting values in from the browser while uploading the file.

But the same i can upload it on facebook and orkut, etc.

Please give the solution to upload all type of images without any errors

Thanks,
Ashraf.
nowaydown1
Forum Contributor
Posts: 169
Joined: Sun Apr 27, 2008 1:22 am

Re: File Upload

Post by nowaydown1 »

Ashraf,

It sounds like this might be related to filesize. Here's some things that come to mind to check out:

* See what your post_max_size directive is set to on your webserver.
* You might try checking upload_max_filesize too.
* Dump your $_FILES array when your upload fails and see what you get. That might give you some additional insight to what is happening.
* Probably not the case, but double check your form has enctype="multipart/form-data" set.
Post Reply