본 사이트는 여러분의 사용자 경험을 개선하기 위해 유지 보수를 진행하는 동안 기능이 제한됩니다. 도움말로 문제가 해결되지 않고 질문을 하고 싶다면 Twitter의 @FirefoxSupport 및 Reddit의 /r/firefox 채널을 활용하세요.

Mozilla 도움말 검색

고객 지원 사기를 피하세요. 저희는 여러분께 절대로 전화를 걸거나 문자를 보내거나 개인 정보를 공유하도록 요청하지 않습니다. "악용 사례 신고"옵션을 사용하여 의심스러운 활동을 신고해 주세요.

자세히 살펴보기

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

  • 1 답장
  • 1 이 문제를 만남
  • 1 보기
  • 최종 답변자: cor-el

more options

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

HTML

  <form id="form" name="form" action="http://123.21.111.51:8081/v1/AUTH_beta27/peter/" 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="" />
       </form>
         <p>
            <input type="button" value="Upload" onclick="upload_files()" />
        </p>

JAVASCRIPT:
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 = 'http://123.21.111.51:8081/v1/AUTH_beta27/peter/' + fileName;

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


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

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

    fm.submit();

}
hi love, i was surprised to see this and lack of my knowledge brought me here. below is my code HTML <pre><nowiki> <form id="form" name="form" action="http://123.21.111.51:8081/v1/AUTH_beta27/peter/" 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="" /> </form> <p> <input type="button" value="Upload" onclick="upload_files()" /> </p> JAVASCRIPT: 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 = 'http://123.21.111.51:8081/v1/AUTH_beta27/peter/' + fileName; console.log('action = ' + action); document.getElementById('form').action = action; document.getElementById('fileSize').value = fileSize; fm.submit(); }</nowiki></pre>

글쓴이 cor-el 수정일시

모든 댓글 (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?