How to check if a file is uploaded or not

Hi,

image

Here, I’m prompting the user to upload a file through the file upload component, uploaded file is getting copied to the required path. In the Get button, i’m displaying the file present at the same path. How do i check if the user is actually uploading the file and not clicking the Get button?

I’m not sure I understand the question. When a user clicks the get button, it will trigger the events configured on it, so it will know the user pressed the Get button. Similar thing for the file upload, the onFileUploaded event will fire which is attached to the File Upload component.

Maybe this will help?

The Get button already contains the path that i’m storing the file in… So if the user clicks on the Get button without uploading, the old data will be displaying instead of a popup saying the user has not uploaded a file

I don't understand the problem either, but I'd suggest that you need to copy the filename and anything else that would help identify that file uniquely (filesize, timestamp, etc.) into a session variable. Then have the Get script retrieve that info from the server and compare it with the session variable. This should mean that it supports multiple clients too.

Custom properties helped… On shutdown, i had to reset it