Make Media Library work with private files ?

I set up the private files path in the site file systems settings and in settings.php as

$settings['file_private_path'] = $app_root . '/../private';

Also set the default download method to private. The .htaccess is properly created in the private files path directory.

I thought this would make uploads default to private or at least give an option to upload to the private directory and/or make them not visible to anonymous / public viewer.

How to create comments with REST API

Hi,

After reading a lot of posts, testing with postman several things I still can't figure out
how to use the REST API for creating content and more generally how to use the core REST API.

Where I am until now

I'm just trying to create a simple page as a starting point.

In the header section of POSTMAN :

'Content-Type': 'application/hal+json',
'X-CSRF-Token': 'MYTOKEN FROM /session/token',
'Accept': 'application/hal+json',

In the body section of POSTMAN :

Upating from 8 to 9, composer requirements could not be resolved to an installable set of packages

I've been working on my first Drupal 8 to 9 update and have been slowly whittling away on the issues Composer throws at me but I've gotten stuck on this new set. I'm not sure where to update or make changes to resolve the symfony and core-recommended requirements.

These are the errors:

Any way to import files uploaded by SFTP into Media Library?

I have a video file that is too large to upload via PHP so I am uploading it with SFTP. Once I have it uploaded to the server, is there a way to import it into Media Library without it trying again to upload the file?

I found an old topic about this at https://www.drupal.org/project/media/issues/3033223, but the place it gives to do this  /admin/content/file/import does not exist on my D8 install.

Thanks.

Vertical and Horizontal Space around inline images and other options missing

In Drupal 7 we had several essential features, for inserting images, that are missing in D8 & D9 as follows:

Missing filter plugin: filter_null.

I'm currently upgrading from 7 to 8.9. I'm pretty far into the migration but I have been noticing administrative buttons don't work. When clicked the "loading watch" will appear for a brief moment then disappear and then nothing else happens. in the developer tools in chrome I get:

"Drupal.AjaxError {message: '\nAn AJAX HTTP error occurred.\nHTTP Result Code: 20…      \\u003C\\/ul\\u003E\\n  \\n\\n","help-main":""}}]', name: 'AjaxError'}"

Pages

Subscribe with RSS Subscribe to RSS - Drupal 8.x