fixes #2203 Can not upload new file in content image field

Fixed the issue and committed code for review, please check it