UI Component Listing And Not registered handle in Magento2

If you face below error in your Magento 2 custom module.

Not registered handle [namespace]_[module]_team_index_data_source

There is one reason for above error is that you are missing di.xml file from [namespace]_[module]/etc/ folder

Copy the following code into di.xml file and place it in root of the etc folder of your module. Don’t forget to change the namespace and module name according to your module in the code.

<type name="Magento\Framework\View\Element\UiComponent\DataProvider\CollectionFactory">

<arguments>

<argument name="collections" xsi:type="array">

...

<item name="[namespace]_[module]_team_index_data_source" xsi:type="string">[Namespace]\[Module]\Model\ResourceModel\Team\Collection</item>

...

</argument>

</arguments>

</type>

Argument 1 passed to App\Service\FileUploader::upload() must be an instance – symfony 4

If you face “Argument 1 passed to App\Service\FileUploader::upload() must be an instance of Symfony\Component\HttpFoundation\File\UploadedFile, string given, ” this error while playing with files in Symfony 4. Then you need to change your file field in controller as. Change your code from

$file = $task-&gt;getTaskLogo();

$file= $form['task_logo']-&gt;getData();

Where task_logo is the name of the file field of your form.