[ 
https://issues.apache.org/jira/browse/MYFACES-4718?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18052926#comment-18052926
 ] 

Werner Punz edited comment on MYFACES-4718 at 1/19/26 9:22 PM:
---------------------------------------------------------------

This is part of the old codebase, there is a function getMultiPartReqClass 
which is an abstraction layer for determining which multipart request system 
can be used, for modern browsers it defaults to FormData older browsers use 
iFrame. The new code has dropped the iframe part entirely!

I need to check out why this fails: the usage in the codebase is something like 
this: 
({color:#cf8e6d}new 
{color}({color:#cf8e6d}this{color}.{color:#56a8f5}_getMultipartReqClass{color}(context))(args)).{color:#56a8f5}send{color}();
 

This is correct if the getMultipartReqClass returns the correct multipart 
abstraction layer constructor!

However given the error we have a bug!

 

 


was (Author: werpu):
This is part of the old codebase, there is a function getMultiPartReqClass 
which is an abstraction layer for determining which multipart request system 
can be used, for modern browsers it defaults to FormData older browsers use 
iFrame. The new code has dropped the iframe part entirely!

I need to check out why this fails: the usage in the codebase is something like 
this: 
({color:#cf8e6d}new 
{color}({color:#cf8e6d}this{color}.{color:#56a8f5}_getMultipartReqClass{color}(context))(args)).{color:#56a8f5}send{color}();
 

This is correct if the getMultipartReqClass returns the correct multipart 
abstraction layer!

 

> Uncaught TypeError: this._getMultipartReqClass(...) is not a constructor
> ------------------------------------------------------------------------
>
>                 Key: MYFACES-4718
>                 URL: https://issues.apache.org/jira/browse/MYFACES-4718
>             Project: MyFaces Core
>          Issue Type: Bug
>    Affects Versions: 3.0.3
>            Reporter: Volodymyr Siedlecki
>            Assignee: Werner Punz
>            Priority: Major
>             Fix For: 3.0.4
>
>
>  
> When uploading a file via ajax, the following exception is encountered: 
> {code:java}
> Uncaught TypeError: this._getMultipartReqClass(...) is not a constructor
>     multipartQueuedPost 
> http://localhost:9080/JSF22InputFile/jakarta.faces.resource/jsf.js.jsf?ln=jakarta.faces&stage=Development:8827
>      request 
> http://localhost:9080/JSF22InputFile/jakarta.faces.resource/jsf.js.jsf?ln=jakarta.faces&stage=Development:9493
>      request 
> http://localhost:9080/JSF22InputFile/jakarta.faces.resource/jsf.js.jsf?ln=jakarta.faces&stage=Development:10281
>      onchange http://localhost:9080/JSF22InputFile/AjaxFileUploadTest.jsf:1  
> {code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to