add file and display it successfully,now save to database