File Upload to Data directory from within Add-on?

Is it possible, when writing a custom Add-on, to upload a file to the /data directory of the Add-on from within the UI configuration tab?

If so, how would I go about it?

Plan B is to use Samba or any other method but I prefer to upload from my own Add-on so I can,somewhat, control what is uploaded.