I got an error like
error":"Unable to create directory
While upload product images. I put 777 permission
/var/www/html/pub/media folder. but i got the error. kindly help me.
Magento Stack Exchange is a question and answer site for users of the Magento e-Commerce platform. It only takes a minute to sign up.Sign up to join this community
Your issue in ownership.
Your web user .. ( CentOS:
apache and www-data ) does not have the ownership to
create folder and files.
See http://devdocs.magento.com/guides/v2.0/install-gde/install/legacy-file-system-perms.html , how to apply ownership in magento2.
As you have using ,please check out http://devdocs.magento.com/guides/v2.0/install-gde/install/post-install-umask.html
the 2.1 release candidate, and with 2.0.6+, if you need permissions for generated assets of 664 and 775
For a case, you can change file permission from M
agento\Framework\Exception\FileSystemException\DriverInterface You need change
WRITEABLE_DIRECTORY_MODE = 0770; to
WRITEABLE_DIRECTORY_MODE = 0775;and
WRITEABLE_FILE_MODE = 0660 to WRITEABLE_FILE_MODE = 0664.It is working for You.