This functionality is handled by the browser and it depends on the file type you are about to open. If you would like all files to be recognized as attachments, you can implement a custom generic handler, providing the MIME types for these specific file types. Please, refer this live demo
for more details on the subject.
If you would like to force the direct opening of all file type, though - I am afraid that this cannot be achieved for the moment.