add error check and post useful info in uploadfileinterval