Fix issue with media uploads for ckeditor