• Login
    • Search
    • Categories
    • Recent
    • Tags
    • Users
    • Groups
    • Rules
    • Help

    Do more on the web, with a fast and secure browser!

    Download Opera browser with:

    • built-in ad blocker
    • battery saver
    • free VPN
    Download Opera

    FormData.set() not defined

    Opera for Windows
    2
    2
    1763
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • hokaspb
      hokaspb last edited by

      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.

      Reply Quote 0
        1 Reply Last reply
      • A Former User
        A Former User last edited by This post is deleted!
        Reply Quote 0
          1 Reply Last reply
        • First post
          Last post

        Computer browsers

        • Opera for Windows
        • Opera for Mac
        • Opera for Linux
        • Opera beta version
        • Opera USB

        Mobile browsers

        • Opera for Android
        • Opera Mini
        • Opera Touch
        • Opera for basic phones

        • Add-ons
        • Opera account
        • Wallpapers
        • Opera Ads

        • Help & support
        • Opera blogs
        • Opera forums
        • Dev.Opera

        • Security
        • Privacy
        • Cookies Policy
        • EULA
        • Terms of Service

        • About Opera
        • Press info
        • Jobs
        • Investors
        • Become a partner
        • Contact us

        Follow Opera

        • Opera - Facebook
        • Opera - Twitter
        • Opera - YouTube
        • Opera - LinkedIn
        • Opera - Instagram

        © Opera Software 1995-