I am working on version 2.4. When I try to use the FileUpload through IE I can not upload the files. But when I do through Firefox work properly. I read a post about this issue but not resolved yet: http://www.phpopenbiz.org/jim/node/351 Maybe someone else has found a solution to this problem. I would appreciate any help. Thanks in advance, DF
|
|||

Here is a quick fix for this
Here is a quick fix for this IE specific issue. In your clientUtil.js,
function UploadFileRPC(rspage, callback, func, parms, formName)
{
...
formobj.enctype = "multipart/form-data";
formobj.encoding = "multipart/form-data"; // add this line to resolve IE issue
...
}
Hi rocky, thanks very much
Hi rocky, thanks very much for your fix... now it works fine... DF
Hi support, Include the code
Hi support,
Include the code here.
Form:
<?xml version="1.0" encoding="UTF-8"?>
<EasyForm Name="f_ga_pdEditPhoto" Class="CustomEasyForm" FormType="Edit" jsClass="jbForm" Title="Upload Photo" Description="" BizDataObj="epd.d_ga_pd" DefaultForm="Y" TemplateEngine="Smarty" TemplateFile="detail.tpl">
<DataPanel>
<Element Name="fld_Id" Class="InputText" FieldName="Id" Label="Num_pd"/>
<Element Name="fld_foto" Class="File" FieldName="_file" Label="Photo" Width="400"/>
</DataPanel>
<ActionPanel>
<Element Name="btn_save" Class="Button" Text="Upload" CssClass="button">
<EventHandler Name="onclick" Event="onclick" Function="PDUpload()" RedirectPage="controller.php?view=epd.v_ga_pd&form=epd.f_ga_pdDetail&fld:Id={@:Elem[fld_Id].Value}"/>
</Element>
<Element Name="btn_cancel" Class="Button" Text="Cancel" CssClass="button">
<EventHandler Name="onclick" Event="onclick" Function="js:history.go(-1)"/>
</Element>
</ActionPanel>
<NavPanel>
</NavPanel>
<SearchPanel>
</SearchPanel>
</EasyForm>
Part of CustomEasyForm:
public function PDUpload()
{
global $g_BizSystem;
$recArr = $this->ReadInputRecord();
if (count($recArr) == 0)
return;
$g_BizSystem->GetClientProxy()->ShowErrorMessage("Receiving Data!");
foreach ($_FILES as $file) {
$g_BizSystem->GetClientProxy()->ShowErrorMessage("File will be Upload!!!");
...
...
...
Using Firefox we get message 'File will be Upload' but not in IE.
Thanks in advance,
DF
What is your form metadata
What is your form metadata like?
- support
Hi support, We have worked
Hi support,
We have worked for several days to find a solution to the problem that we discussed in this post.
We have not reached any possible solution to activate the Upload using IE.
I would appreciate any comments on this topic or any equivalent solution.
Thanks in advance, DF