Add possibility for passing UploadedFile-objects to attach()