[Core]: fixes file-upload formular element and javascript