# Fileupload 2 - method is not called

**URL:** <https://techcommunity.softwareag.com/t/fileupload-2-method-is-not-called/57460>\
**Category:** Forum\
**Tags:** Former-Crossvision-Products, Application-Composer\
**Created:** [August 24, 2006, 6:21pm UTC](https://techcommunity.softwareag.com/t/fileupload-2-method-is-not-called/57460 "2006-08-24T18:21:10Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![hjo](https://avatars.discourse-cdn.com/v4/letter/h/e0b2c6/32.png) [@hjo](https://techcommunity.softwareag.com/u/hjo)\
**Post date:** [August 24, 2006, 6:21pm UTC](https://techcommunity.softwareag.com/t/fileupload-2-method-is-not-called/57460/1 "2006-08-24T18:21:10Z")

</div>

Hello,

as cit 2.1 is released, I try the new features, especially the fileupload2.

But the method is not called which I defined in the layout. Even the setter aren’t called.

Here’s the layout:

```auto

...
<rowarea name=" " fixlayout="true">
	<vdist height="5"/>
	<itr>
		<label textid="file" width="150"/>
		<fileupload2 width="300" cfileprop="clientFileName"
			sfileprop="serverFileName" method="onUpload"/>
	</itr>
...
```

And the adapter code:

```auto

public class MediaUploadAdapter extends Adapter
{
    private String m_ClientFileName = "", m_ServerFileName = "";

    public void onUpload()
    {
         // ...
    }

    public String getClientFileName()
    {
        return m_ClientFileName;
    }

    public void setClientFileName(String clientFileName)
    {
        m_ClientFileName = clientFileName;
    }

    public String getServerFileName()
    {
        return m_ServerFileName;
    }

    public void setServerFileName(String serverFileName)
    {
        m_ServerFileName = serverFileName;
    }
}
```

By the way, if I include a button and press it - the method on the button is called, but not the setters or onUpload()…

Thanks in advance for any advice.

H. Johannes

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/techcommunity/original/3X/c/d/cd19967bb605d28a72d77eb83a1cae22f3df2eb8.svg) [@system](https://techcommunity.softwareag.com/u/system)\
**Post date:** [April 2, 2021, 2:38pm UTC](https://techcommunity.softwareag.com/t/fileupload-2-method-is-not-called/57460/2 "2021-04-02T14:38:39Z")

</div>


