How to find if file was successfully uploaded to webform I am using the file field in webform, I would like to check if the file was successfully uploaded. I was using


  .onChange


But that only means that a file was attempted to be uploaded. How can I be sure if the file was correctly uploaded. Would like to do this via javascript/jquery to trigger some next steps.

Thanks.
I wouldn't recommend doing this with javascript, you should use a PHP function to inform the client-side of success.

However, if you insist on doing it,  you could (in theory) just create a new AJAX call to the location wehre you expect the new file to be.   If it errors,  it means it wasn't uploaded.

$.ajax({
    url:'http://www.example.com/yourfile.jpg'
    error: function()
    {
        //file not there.
    },
    success: function()
    {
        //file is there
    }
});