I was looking for example to upload attachment via VF page.
There are multiple examples(similar code) available online, with some making use of enctype="multipart/form-data. While other directly proceeded without making use of it. For eg. http://www.forcetree.com/2011/02/upload-file-as-attachment-to-record.html ( no use of enctype)
(2) http://blog.jeffdouglas.com/2010/04/28/uploading-an-attachment-using-visualforce-and-a-custom-controller/ ( making use of enctype)
What is the best practice? when to use and when not?