How to upload multiple files and predefine filetypes?
Also i would like to know how i can predefine the filetypes users can
  upload?


Specify the file types restriction on the file field with 'file_validate_extensions' in the #upload_validators array in the file field.
See the form api for reference. See the file_managed field.