It looks like you haven't uploaded a file when you've tried it and then it does go into if statement if( $request->hasFile('th_attach')) and that is why $filename remains empty string as you have it defined $filename='';.
For example change $filename=''; to $filename='something'; and see if with the same flow (without uploading a file) you get $account->th_attach populated and saved in the database.
@bugsysha Thank you very much for your reply.. I tried already as you said.. It is saving the value.. example.. it is inserting the value 'something' into the table but it is not inserting the document
So when you create this resource everything works as it should, but now when you reuse that logic for updating it is not working? Is only the name problem or file uploading also?
Then you need to post here contents of blade file responsible for editing that resource with all code related to serving that edit page and storing it.