Scott
Scott

Reputation: 51

JQuery File Upload 500 Internal Server Error

I've been stuck on this for about a week and I just seem to be going around in circles.

The problem is receiving a 500 Internal Server error when uploading files. I've posted around a few forums but help is extremely limited due to me running a Windows Server.

So what have I done so far?

  1. Checked, double checked, triple checked the PHP.INI file to make sure I have all the correct attributes set:

     max_execution_time   600
     max_input_time   600
     memory_limit   128M
     post_max_size     50M
     upload_max_filesize   50M
    
  2. Checked over the script and decided to test a few different scripts from various sources W3Schools, PHP.net etc same problem.

  3. Upgraded PHP5 to PHP5.3 same issue

  4. Tried to implement it using the JQuery_File_Upload API and I got unstable results. Rarely it would upload >10MB files and almost always threw out a Internal Server Error

  5. Checked the error log. I checked it but nothing out of the ordinary in there and last write was a few days ago so I added a custom log and again, nothing being written to it.

What else can I do? I'm running a dedicated server, Windows 2008, Plesk.

Please help!

Thanks.

Upvotes: 4

Views: 6952

Answers (1)

toast
toast

Reputation: 1980

I resolved this issue by checking the /var/log/apache2/error_log files. Saw something there that indicated that a.htaccess file was being read, so i went to that dir and opened the .htaccess file: server/php/files/.htaccess

Then commented out the below line by putting a hash in front of it: Header set X-Content-Type-Options "nosniff"

Then browsed to the directory and it worked fine.

Upvotes: 1

Related Questions