Multiple extensions for for each file activity

Cant we add filter only instead of checking in for each. like, setting up the filter only to give only files with required extensions?