vijayrami / Magelearn_CustomerAvatar

This module adds ability to Customer to upload the profile picture in their account. This image upload option will available in `Customer Registration Page`, `Edit Account Inofrmation Page`, `Product Review Page` and `Cutomer listing grid` at admin.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Magelearn_CustomerAvatar

This module adds ability to Customer to upload the profile picture in their account.

This image upload option will available in Customer Registration Page, Edit Account Inofrmation Page, Product Review Page and Cutomer listing grid at admin.

Issue

Exception #0 (InvalidArgumentException): Invalid parameter given. A valid $fileId[tmp_name] is expected.

Solutions

You can solve this issue in two ways.

[1] Reconfigure your php.ini and set the value upload_tmp_dir to one of the below allowed folders of Magento.

"<magento_root>/pub/media"

"<magento_root>/var"

"<magento_root>/var/tmp"

"<magento_root>/pub/media/upload"

[2] Go to vendor/magento/framework/File/Uploader.php

In function _setUploadFileId($fileId), change:

$this->validateFileId($fileId); to

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

Referances

https://magento.stackexchange.com/questions/296044/invalid-parameter-given-a-valid-fileidtmp-name-is-expected

Screenshots

Home-Page-1.gif

Customers-Customers-Magento-Admin.png

New-Customer-Customers-Customers-Magento-Admin.png

About

This module adds ability to Customer to upload the profile picture in their account. This image upload option will available in `Customer Registration Page`, `Edit Account Inofrmation Page`, `Product Review Page` and `Cutomer listing grid` at admin.


Languages

Language:HTML 63.8%Language:PHP 31.2%Language:CSS 4.0%Language:JavaScript 1.0%