The following are different flow scenarios with links to documentation that I have found helpful in creating workflow solutions. To move an attachment from a list to a library and set the file with special permissions, the following documentation was used:
Moving PowerApps Attachments to a Document Library