Skip to content

Uncaught exception: TypeError: 'l' is not a constructor #87

Closed
VitaliySunny opened this Issue Apr 18, 2013 · 4 comments

2 participants

@VitaliySunny

Opera 11.60, Windows 7 64bit.
Browser UA: Opera/9.80 (Windows NT 6.1; U; ru) Presto/2.10.229 Version/11.60

Uncaught exception: TypeError: 'l' is not a constructor
Error thrown at line 43, column 856 in <anonymous function: toFormData>(a) in http://127.0.0.1/Orders/RemoteUpload/server1/common/FileAPI.min.js:
    this._to(new l,a,function(a,d,f){a.file&&d.append("_"+a.name,a.file);
called from line 41, column 697 in <anonymous function: toData>(f, c) in http://127.0.0.1/Orders/RemoteUpload/server1/common/FileAPI.min.js:
    a.support.html5?this.multipart?(a.log("FileAPI.Form.toMultipartData"),this.toMultipartData(f)):
called from line 47, column 460 in <anonymous function: send>(a) in http://127.0.0.1/Orders/RemoteUpload/server1/common/FileAPI.min.js:
    a.toData(function(a){c.upload(c,f);f._send.call(f,c,a)},c)
called from line 26, column 62 in <anonymous function: upload>(a) in http://127.0.0.1/Orders/RemoteUpload/server1/common/FileAPI.min.js:
    w.send(a)
called from line 27, column 355 in <anonymous function: _getFormData>() in http://127.0.0.1/Orders/RemoteUpload/server1/common/FileAPI.min.js:
    a(p)
called from line 16, column 925 in <anonymous function: end>() in http://127.0.0.1/Orders/RemoteUpload/server1/common/FileAPI.min.js:
    d||(d=!0,b())
called from line 16, column 743 in <anonymous function: check>() in http://127.0.0.1/Orders/RemoteUpload/server1/common/FileAPI.min.js:
    e>=a&&!c&&j.end()
called from line 28, column 275 in <anonymous function: _getFormData>(b, e, a) in http://127.0.0.1/Orders/RemoteUpload/server1/common/FileAPI.min.js:
    f.check()
called from line 25, column 13 in M() in http://127.0.0.1/Orders/RemoteUpload/server1/common/FileAPI.min.js:
    "abort"!=e.statusText&&p?(e.currentFile=y,b.prepare(y,l),this._getFormData(l,p,function(a){d||b.upload(e,b);var w=new h.XHR(h.extend({},l,{upload:function(){b.fileupload(y,w,l)},progress:function(a){m||(j=d+=c*v*(a.loaded/a.total)-j+0.5|0,p.total=a.total,p.loaded=a.loaded,b.fileprogress(a,y,w,l),b.progress({type:a.type,total:c,loaded:e.loaded=d,lengthComputable:!0},y,w,l))},complete:function(a){g(W,function(b){e[b]=w[b]});m=!0;p.loaded=p.total;e.loaded=d+=d-j+(c*v+0.5)|0;b.filecomplete(a,
called via Function.prototype.call() from line 24, column 390 in <anonymous function: upload>(b) in http://127.0.0.1/Orders/RemoteUpload/server1/common/FileAPI.min.js:
    (function M(){var p=a.shift(),f=this,y=p&&p.file,m=!1,l={};g(b,function(b,e){b&&"object"===typeof b&&(b=h.extend({},

In other browsers all fine.

@RubaXa
RubaXa commented Apr 18, 2013

Please, try "dev" branch.

@VitaliySunny

File successfully sent to a server, but the script received only "[object File]".

POST /Orders/RemoteUpload/server2/uploader.php?fileapi136637600740634 HTTP/1.1
User-Agent: Opera/9.80 (Windows NT 6.1; U; ru) Presto/2.10.229 Version/11.60
Host: localhost
Accept: text/html, application/xml;q=0.9, application/xhtml+xml, image/png, image/webp, image/jpeg, image/gif, image/x-xbitmap, */*;q=0.1
Accept-Language: ru-RU,ru;q=0.9,en;q=0.8
Accept-Encoding: gzip, deflate
Referer: http://localhost/Orders/RemoteUpload/server1/index.php
Connection: Keep-Alive
Content-Length: 173
X-Requested-With: XMLHttpRequest
Content-Type: multipart/form-data; boundary=_fileapi1366376007406
Content-Transfer-Encoding: binary
@RubaXa
RubaXa commented Apr 20, 2013

I apologize hurried, try again "dev" branch.

@VitaliySunny

Everything is working correctly. Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.