How can I save textarea content into a file for order attachments?

Hi All,

Is there a way to save the contents of a textarea into a file which will then be uploaded into shopify or attached to the order email?

We have a product which is customisable and generates an SVG code which appears as text on the Orders page (line item property). What we would like is to save the contents of the textarea as an .svg file which can be attached to the notification email or downloaded on the Orders page. Can this be done?

Thanks,

James

Also, we were able to create an .svg file and save it to the customer’s device but in order for us to get a copy, the customer must upload the .svg file. Ideally, we do not need the customer to get a copy of the file, we just need it to be sent to us/saved on the Orders page directly.