Created a flow while a file is uploaded to a document library, it is getting failed? But for the item created in a list, the flow is working fine don't know why it is not triggered for file upload.
the flow is working fine at my end, are you uploading file to correct folder? or just on root of document library?
Update: there are 2 triggers for File upload event.(refer above image)
triggers when you upload file to root document library
will trigger when you upload file to some folder already present in document library.
So if you are uploading file to root you need to change trigger to 1st in above screenshot if you are uploading in some folder in Document library user trigger 2