File uploader using uipath app

hello in the documentation it says:
" 1. In your app, add a Storage Bucket and a Data Service entity that has file fields.
2. Add a File Uploader and a Button control.
3. Create a variable of type AppsFile and name it "SB_file_var’. Use this variable to store the file downloaded from the storage bucket.
4. Add the Upload file to Storage Bucket rule to the Clicked on event of the button control.

  1. In the File to upload field, reference the file uploaded through the File Uploader control, as follows:

MainPage.FileUploader.Value

I’m not sure how this MainPage.FileUploader.Value should be used, please help.

also please advise how the File Name (with extension) should be entered in the downloadFilefromStorageBucket.


@Lynn_Song

For you it would be

Promptpage.layout.container.fileuploader.value

Cheers

@Lynn_Song,

Use it like this
imageUploadAppPage.ImageUploader.Value

Sample code you can import in Apps
Browse File Demo.uiapp (103.4 KB)

Thank you both, what about the File Name in the download part? I tried to put “=” in the highlighted field but nothing came up…

@Lynn_Song,

No need of = symbol directly pass the file name like this.

Hi @Lynn_Song

This will help

thanks, but I need to use a variable as the file name will change

@Lynn_Song,

You can use storagebucketFileVariable.Name

Thank you so much for sharing!

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.