This might be helpful to you.
https://team.quickbase.com/db/bpjkmt63s?_ga=2.23586106.1428207658.1557250943-809005196.1557250943It's the Automatic Formula Machine application which was recently posted by Brian Cafferelli of Quick Base. It's a handy-dandy tool.
As to your question; the uploading into a File Attachment field can only happen in the record the file attachment fields are stored. Once there; you can download/access those stored files from related tables as long as you can point the URL to the DBID and correct Record ID# of the record that houses those files.