0

While uploading a image getting error

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

enter image description here

1
  • Are your magento setup on bitnami server?
    – Amit Saini
    Feb 8, 2021 at 14:29

1 Answer 1

2

In Magento\Framework\File\Uploader.php
comment the following method inside _setUpload FileId($fileId) function

// $this->validateFileId($fileId);

it's work for me

2
  • this is core file, so this is not right way , if we comment it's stop validating for whole website Feb 8, 2021 at 12:17
  • for local server it's works for me Where do you get the error local or live ? Feb 8, 2021 at 12:50

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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