Avoid getting the list twice, follow coding style, explicitly access portal methods on portal.
Attach a file by drag & drop or click to upload