You can copy an attachment within a workflow into a resource with the advanced, utilities component: From attachment to a resource. The component has these parameters:
In the example above the attachment called: attachment.pdf is copied to the resource type, other in the subdirectory PDFs as the file/resource: Myfile.pdf.