on final stage of file uploading function for note posts