add file record feature

fixed bugs when upload failed the file input can not be display.
add file record feature