Search Support

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

firefox gives 500 internal server error when i upload a javascript file with .js extention the same code works in Chrome

  • 1 reply
  • 1 has this problem
  • Last reply by cor-el

more options

hi love, i was surprised to see this and lack of my knowledge brought me here. below is my code


  <form id="form" name="form" action="" method="POST" enctype="multipart/form-data">
           <input type="file" id="fileToUpload" name="fileToUpload" />
           <input type="hidden" id="auth" name="auth" value="AUTH_tk7f679e48c7074a06bf28ca3a999f3dda" />
           <input type="hidden" id="fileSize" name="fileSize" value="" />
            <input type="button" value="Upload" onclick="upload_files()" />

function upload_files() {

    var file = document.getElementById('fileToUpload');
    fileName = file.files.item(0).name;
    fileSize = file.files.item(0).size;

    var fm = document.getElementById("form");

    var action = '' + fileName;

    console.log('action = ' + action);

    document.getElementById('form').action = action;

    document.getElementById('fileSize').value = fileSize;



Modified by cor-el

All Replies (1)

more options

Which security software (firewall, anti-virus) do you have?

Did you make sure that your firewall or anti-virus software isn't blocking such uploaded content?