Internal Server Error on 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
trubeats
Forum Newbie
Posts: 1
Joined: Tue Jul 28, 2009 9:43 am

Internal Server Error on File Upload

Post by trubeats »

Hi,

I am getting an Internal Server Error when uploading files of a certain size. My php.ini values are;

memory_limit = 512M
post_max_size = 1024M
upload_max_filesize = 1024M

These values are confirmed with phpinfo(). I'm only trying to upload a 23MB file and it throws the 500 Internal Server Error. When I upload something smaller like 5mb, the upload works fine. I contacted the hosting company and they said they do not provide support for user written scripts, but I have a feeling that its nothing to do with my script, its the server. But I could be wrong. Anyone have any clues?

Thanks
User avatar
pickle
Briney Mod
Posts: 6445
Joined: Mon Jan 19, 2004 6:11 pm
Location: 53.01N x 112.48W
Contact:

Re: Internal Server Error on File Upload

Post by pickle »

Unless you're explicitely throwing the 500 error, I would tend to believe it's the server. I've never had that happen. If your file upload was exceeding some limit, it would throw that error - not give you a 500 error. That error happens outside PHP.
Real programmers don't comment their code. If it was hard to write, it should be hard to understand.
Post Reply