MDL-25937 Froms Library: Added server side validation for filepicker and filemanager