Add Scheme and subdirectory choices to api

Created on 13 December 2017, over 7 years ago
Updated 20 June 2025, about 1 month ago

I'd like the ability to specify exactly where the pdf files get written to and so I added two parameters to the field_data structure which does so.

file_scheme : Specifies whether you want the files in the public or private schemes.
file_subdirectory: Specifies if you want a subdirectory under that scheme created and used.

It's nice to have this in the dynamic field_data data structure so that you can make this decision at runtime as apposed to once globally for the whole site using the variable table. (i.e. Some pdfs you might want in public subdirs and some pdf files you might want in a specific subdir of private.)

Unfortunately my current project is also using and depending on two other patches that have been submitted and so my patch by default includes those and will only apply if those patches have not been applied. We are using this patch https://www.drupal.org/files/issues/pdf_using_mpdf_save_filefield-246406... β†’ and this patch: https://www.drupal.org/files/issues/pdf_using_mpdf_ability-to-alter-mpdf... β†’

✨ Feature request
Status

Closed: outdated

Version

2.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States dshumaker

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024