Skip to content

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.

Notifications You must be signed in to change notification settings

vijayrami/Magelearn_CustomerAvatar

Repository files navigation

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.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published