I'm aware that a product can be added via querystring in Magento.
Pattern:
/path/to/app/checkout/cart/add?product=[id]&qty=[qty]
And if I have a required custom options:
/path/to/magento/checkout/cart/add?product=$id&qty=$qty&options[$id]=$value
If custom option is for example "field" or "drop_down", it's simple;
My querstion is: How to add a product via querystring if one of custom option is a file type?
I would like to add a file, as custom option value, that is already uploaded on server with AJAX (before product is added to cart).
Can it be done? And how?
Thank you for any solution.