fixes #5459 SubmitContent forum Submitting on Attachment Browse

Fixed the issue and pushed the code for review, please check it.