drupal 8 website can't upload images


Drupal 8.7.1 Website Can't Upload Images

When working in Drupal 8.7.1 or Drupal Web Application, sometimes you might encounter an error where you or any other users are not able to upload images to the site.

Below are possibilities that might be happening on your Web Applications:

  1. The Private folder located at /var/www/private is not writable if you don't know how to work with Linux Permissions, read my other Notes Here
  2. The image itself is too big
  3. If you are dealing with Sliders, sometimes they only accept jpg and not png (Also research about why you should use jpg rather than png, jpg is optimized for speed and is better than png)
Solution:
  1. Get access to your Web Server and have SSH ready to remote connect
  2. Identify the User Group you are operating under e.g. root, or other different user group and know your permissions
  3. Lastly type: chgrp -R [the user group you want to have access to the folder so that the website can upload images] /var/www/private/

Technology
published
v.0.01



Jack said:

Thank you

Posted On: July 24, 2021 12:58:37 PM

For peering opportunity Autonomouse System Number: AS401345 Custom Software Development at ErnesTech Email AddressContact: [email protected]