New answers tagged

0

Try below solution: Add file upload input in your phtml <li class="field upload front_img required full-width"> <div class="item"> <div class="image_upload front" id="image_upload_front" style="background-size: contain;"> <input type="file" ...


1

First convert your image into base64 then use that base64 string in to graphql input. <?php namespace VendoreName\ModuleName\Model\Resolver; use Magento\Framework\GraphQl\Config\Element\Field; use Magento\Framework\GraphQl\Exception\GraphQlInputException; use Magento\Framework\GraphQl\Query\ResolverInterface; use Magento\Framework\GraphQl\Schema\Type\...


1

Please check the below link and see if it helps: https://github.com/huykon/magento-graphql-uploader


0

There are two easy steps to achieve this Client Side (in browser or mobile application): Convert your image into base64 on client side then use that base64 string in to graphql input. Server Side: Convert base64 string to image and save as file on server.


Top 50 recent answers are included