Verify Filename has extension .tar or not using PHP Magento 2.
If the file is a valid tar file, the result will be true otherwise result will be false. Some time you need to verify the current file is tar or not in that scenario, this article is used for your development. Continue reading “How to check File is .tar using Magento 2?”
Check Given file is an archive or not using Magento 2 by Magento\Framework\Archive Class.
Archive class has a logic to verify the given file is an archive or not in Magento 2. Continue reading “How to verify File is Archive or not using Magento 2.”
If you want to get the full path of view directory for frontend or backend area, You need to use Magento\Framework\View\Asset\Repository class to achieve the task. Continue reading “How to Get Module’s view directory image or js full path using Magento 2?”