in magento 2.3.1 below code is work

<field id="file_upload" translate="label" type="Magento\Config\Block\System\Config\Form\Field\File" sortOrder="10" showInDefault="1" showInWebsite="1" showInStore="1">
    <label>Upload File</label>
    <upload_dir config="system" scope_info="1">customUpload</upload_dir>

but in Magento 2.3.3 this not working it give error

Invalid parameter given. A valid $fileId[tmp_name] is expected.

enter image description here

  • If is not Magento 2.3.3 issue. Because I've used same code in my M2.3.3 and it is working fine. Can you please use this configuration anywhere else and check ? – Kishan Savaliya Oct 16 '19 at 18:00
  • Hi @KishanSavaliya i used this configuration in my custom module where i getting this error also i test this code in local – chandresh chauhan Oct 17 '19 at 4:03
  • can you please check you exception.log or system.log in var/log directory ? From where you're getting this issue ? Is that your any custom module or default magento file ? – Kishan Savaliya Oct 17 '19 at 4:08
  • no i have install new magento 2.3.3 and also magento core functionality in configuration -> Sales -> Invoice and Packing Slip Design -> Logo for PDF Print-outs (200x50) not working , in live server it's work but not in local – chandresh chauhan Oct 17 '19 at 5:19
  • You can check this image <drive.google.com/file/d/1WL17yXTjJDHOZk8IVaEhwCelyIpSonUu/…> I just updated that image here which you've mentioned here. And that is working with default Magento 2.3.3 version. – Kishan Savaliya Oct 17 '19 at 7:45

i got the issue in file Magento\Framework\File\Uploader.php in which new method was added so i just comment that method, in function _setUploadFileId($fileId) found the


change to


it's work in my case in local server

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.