Upload file by using Process Upload in Logic -choice

Hi!

For some hours I have tried to implement uploading an image with checking file size. I have checked the ‘Process Upload in Logic’ property. I haven’t find any documentation about using of that. I have tried different places to implement the checking of file size and uploading.

The most successful implementation has been the solution where the file size is checked in ‘On Select Files’ event. That works with large images and the program gives the error message for the user. But if the file size is small enough nothing happens.

Here is my code:

In console, I can see that the process goes in the right path in the code:

But in Network tab we can see that nothing is happening when the button has been pressed:

Either any error occurs. However, the program goes to ‘on Upload Failed’ event.

Please, help me. What I am doing wrong?

Thanks for advance!
Hanna

Hello @Hanna_Parkkola

Perhaps this approach would work for you. Create two buttons—one for selecting files, the other for uploading



The Flie Uploader Button (Select Files) logic:


The Button (Upload) logic:


Kind regards,
Viktor

Thanks Victor,
I had to take a little break with the issue. But when I started to consider it again I noticed that I had thought it too complicate way. It was much more easier than I tried to do.

It’s working now. :slight_smile:
Hanna