Skip to content

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

VitaliySunny opened this Issue Apr 18, 2013 · 4 comments

2 participants


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
    this._to(new l,a,function(a,d,f){a.file&&d.append("_",a.file);
called from line 41, column 697 in <anonymous function: toData>(f, c) in"FileAPI.Form.toMultipartData"),this.toMultipartData(f)):
called from line 47, column 460 in <anonymous function: send>(a) in
called from line 26, column 62 in <anonymous function: upload>(a) in
called from line 27, column 355 in <anonymous function: _getFormData>() in
called from line 16, column 925 in <anonymous function: end>() in
called from line 16, column 743 in <anonymous function: check>() in
called from line 28, column 275 in <anonymous function: _getFormData>(b, e, a) in
called from line 25, column 13 in M() in
    "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/|0,,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;;e.loaded=d+=d-j+(c*v+0.5)|0;b.filecomplete(a,
called via from line 24, column 390 in <anonymous function: upload>(b) in
    (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 commented Apr 18, 2013

Please, try "dev" branch.


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 commented Apr 20, 2013

I apologize hurried, try again "dev" branch.


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.