insert file into database from editor