When using Drupal your browser returns the following error

The selected file /tmp/file*** could not be uploaded, because the destination ***/***.*** is not properly configured.

This means that the file system path where uploaded files are store during previews is misconfigured. In simple terms Drupal try to upload a temporary file to your server but the process is not working.

An "Internal Server Error" often occurs on:

  • Migrating a website to a different server.
  • Misconfigured Temporary directory setting under admin/settings/file-system.

To fix this

Navigate to admin/settings/file-system

Under the section Temporary directory: configure the path appropriately. Each server is different. You must type in the appropriate path to your tmp folder on your server. If unsure use a FTP tool. Connect to your server. And search for the folder tmp. If nothing works type in /tmp. This is the most common path.

If above isn't working then using an FTP tool ensure the CHMOD security setting on your tmp folder is appropriate. CHMOD should be 750.

Comments

chrimbus0’s picture

In my case, I've searched my ftp and there is no such folder as /tmp. Since I updated my site, the css is no longer being referenced so the styles are gone. Hitting a real wall right now.

acnimda’s picture

If this issue occurs on a drupal 9 project:

visit /admin/config/media/file-system
instead of admin/settings/file-system.

On this page you will find an overview where files are stored. Included your divined locations in your settings.php