In Magento 2 the best way to get a product collection is to use the product repository. Here is an example on how to get a product collection in a block class.
In some cases, i hope not to0 many, you want to get content from a static block in Magento 2. You can use the following code snippet in your block to get the static block info by identifier name.
A little blog on how to use the file-uploader.js uicomponent. Case: Let’s say you want customers to be able to upload a csv with products and qty to order.