Tweak the attach method slightly so you it properly automates missing details for simple paths. Also allows more flexibility by allowing developers to pass an array of details of the file or simply use an UploadedFile instance.

Signed-off-by: Jason Lewis <jason.lewis1991@gmail.com>