S3 callback functions aren't working

S3 resource is not triggering onSuccess and onFailure callback methods and shows up as undefined.


Hey @Majeed_Thaika!

The functions passed to onSuccess and onFailure should be uninvoked. As you currently have them set up, you are passing the return value of the console.log function to onSuccess and onFailure which is undefined as I don't believe console.log actually returns any data.

Here's a couple of examples, and a link to our docs as well.

Using a fat arrow function:

Using the function keyword:

Notification on success!
Screenshot 2023-11-30 at 9.33.54 AM

Let me know if you have any issues after switching that up!