New answers tagged

0 votes

Creating a file type of epub in commerce

Sounds to me like your product variation has a different file field on it whose settings will need to be changed in your product variation types interface. If you're using the default file field added ...
Ryan Szrama's user avatar
  • 7,030
0 votes

How do I programmatically create a file and write it in the private:// folder?

As noted, file_save_data is deprecated as of Drupal 9.3. The file.repository service is a good replacement as it will both generate the actual file in the filesystem and the File entity. <?php use ...
Peter's user avatar
  • 11
0 votes

.htaccess file under sites/default/files/ stops css from loading

I had the same problem. My solution is this. In apache2.conf I have this setting: <Directory /> Options FollowSymLinks AllowOverride None Require all granted </Directory> In my vhost.conf ...
Fred's user avatar
  • 1

Top 50 recent answers are included