• Resolved rohitmanglik

    (@rohitmanglik)


    After I select a file by clicking on Browse Button, I am getting following javascript error:

    VM1615:1 Uncaught SyntaxError: Unexpected token { in JSON at position 336success @ ultimate-importer-free.js?ver=4.5.3:6i

    Now the next button doesn’t enable at all.

    It was working fine in my system till now. I am using Chrome Browser.

    I have minification enabled so cannot tell the exact place but it should be somewhere over here:

    success: function(data) {
                    var fileobj = JSON.parse(data);
                    jQuery.each(fileobj, function(objkey, objval) {
                        jQuery.each(objval, function(o_key, file) {
                            document.getElementById('uploadFileName').value = file.name;
                            var filewithmodule = file.uploadedname.split(".");
                            var check_file = filewithmodule[filewithmodule.length - 1];
                            if (check_file != "csv" && check_file != "txt") {
                                alert(wp_ultimate_translate_importer.fileformatmsg);
                                return false;
                            }

    I cleared all my cache but no success.

    https://www.ads-software.com/plugins/wp-ultimate-csv-importer/

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Javascript error when trying to add file’ is closed to new replies.