#3 fix promise for file details
#3 fix promise for file details