Skip to Content
avatar image
Former Member

sap.ui.commons.FileUploader

Hi

I am trying to upload a file but

after I press 'browse' and select

the file to upload, I do not see the

file name in my text input field.

I searched and saw that it is advised to use

sap.ui.unified.FileUpload , but although the

package sap.ui.unified is there, this class cannot

be found in this package.

I will be grateful for any suggestion.

regards

Yuval

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    Jan 04, 2015 at 07:16 PM

    HI YUVAL

    Here is an example file name is shown correct.

    BTW, which version of SAPUI5 are you using.

    As Jason has pointed out, sap.ui.commons.FileUploader has been depreciated.

    Thanks

    -D

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi Yuval,

      You shouldn't need to copy any files, how are you runnng the applications via Eclipse? The .js files should be under the META-INF/resources directory in the jar file,

      Looking at your bootstrap, you hav changed the src path, this should still point to the sap-ui-core.js, the unified lib should only be added to the data-sap-ui-libs.

      <script id='sap-ui-bootstrap' type='text/javascript'

              src='resources/sap-ui-core.js'

              data-sap-ui-theme='sap_goldreflection'

              data-sap-ui-libs='sap.ui.commons,sap.ui.unified'>

      When you say you can't locate the file do you mean in the browser debugger? If you look in the network tab, do you see the files are requested?

      It might be worth looking at the FileUploader test page.

      https://sapui5.hana.ondemand.com/sdk/#test-resources/sap/ui/unified/FileUploader.html

      Many thanks,

      Jason


  • avatar image
    Former Member
    Jan 04, 2015 at 10:06 AM

    Hi Yuval,

    Not sure if it's a typo, however the correct control name is sap.ui.unified.FileUploader

    What version are you using? The sap.ui.commons.FileUploader has been deprecated since 1.21.0.

    Regards,

    Jason

    Add comment
    10|10000 characters needed characters exceeded