now file upload works fine, file are also added to library