:tools: Scheduled maintenance

Heads up! Downtime for the Forums, related to the NodeBB upgrade, is planned for Thursday, December 14, starting from 10:00 UTC.
Please make sure to finish all your posts before this time. The downtime should only last for a few minutes.

FormData.set() not defined

  • 11.05.2016

    User Agent: Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/49.0.2623.75 Safari/537.36 OPR/36.0.2130.32

    Steps to reproduce:
    <form id="form1" action="" method="POST" accept-charset="utf-8" enctype="multipart/form-data">
    {# data-maxwidth,data-maxheight -> X,Y size of the resized imagges #}
    < input id="fileinput" data-maxwidth="800" data-maxheight="600" type="file" name="fileinput" multiple>
    < /form >
    <input id="upload" type="button" value="Upload" onclick="upload();">
    <div id="preview"></div>
    <script src="/static/preprocess.js" type="text/javascript" charset="utf-8"></script>

    preprocess.js :
      
    // My start point is:    
    // https://github.com/josefrichter/resize/blob/master/public/preprocess.js    
    //    
    // Great thanks Josef !    
    //    
    ...    
    var form = document.getElementById('form1');    
    var fileinput = document.getElementById('fileinput');    
    var fdata = dataURLtoBlob(blob);    
    var fd = new FormData(form);      
    fd.set(fileinput.name, fdata, fname); 
    

    .
    work in Firefox. Not work in Opera

    Actual results:

    FormData.set() not defined


    After update java, Firefox, Opera

    Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/50.0.2661.94 Safari/537.36 OPR/37.0.2178.43

    work in Firefox. And work in Opera.

    Windows 7 SP1 max, Windows 8.1 pro, Windows XP pro, fc16-23

    FormData.append() work fine always.

    As I see, FormData::set() used FormData::append() in source code, bath not work from instalation.msi in some compilation.

    Opera for Linux (Fedora, Gnome3, vlc[rpmfusion], nvidia[nvidia]) ofen unstable on Pentium-4. Without Opera all right.

Log in to reply
 

Looks like your connection to Opera forums was lost, please wait while we try to reconnect.