How does Product Options Type File work with API?

Hi, we are adding custom fields to some products now, I’ve managed to add work with Text(I) and Select(S) type of fields through my custom front-end (not the one CS-Cart provides)
Now, I need to work uploading files and attaching them to orders so my vendors can get those and work with them, but I just dont have any clue about how those work with the API. Do I have to send an URL? a blob?

Thanks in advance for answering.
Best regards.

Hi!

Please check the \Tygh\Api\Entities\Products::prepareImages() (app/Tygh/Api/Entities/Products.php) method and take a look how the fn_filter_uploaded_data() (app/functions/fn.fs.php) function works.