A little background about my issue: I'm running WP + WooCommerce + Gravity Forms and want to enable users to create WC digital-virtual-downloadable products from the frontend using GF. Essentially, users upload audio files using GF's Custom Field values (File Uploads) with mp3 as the meta key (the file path/URL to the uploaded file is the meta value).
Since WC stores digital products as post meta fields, as well, under the _file_paths meta key, I thought I could go that route, but it turns out that it's not as simple as that. The meta value for WC's _file_paths is actually stored as an array with an MD5 hash.
My questions is, how do I duplicate the mp3 meta value under the WC's _file_paths meta key and store it as an array with that md5 hash. Alternatively, if there's another way to accomplish this, I'm totally open to that, as well (ie. store meta value as an array under _file_paths meta key and somehow throw in that hash).
Here's something that might help with the answer - http://docs.wedevs.com/woocommerce-downloadable-product/