Avoid writing to disk prior downloading

Created on 21 November 2019, over 4 years ago
Updated 19 July 2023, 11 months ago

Currently, the module creates a file in the temporary file storage before initiates the download (see line #39 in the .module file). Although it's working but not an elegant solution:

  • In rare edge cases when two users require the same config item, then a namespace conflict can happen. Tracking which user which file instance needs to download means extra overhead.
  • On any site instance where Drupal's /tmp file system is misconfigured, then possibly sensitive configuration item would be accessible publicly.

Instead, we may want to research the opportunities to generate the downloadable file directly from memory during runtime.

πŸ“Œ Task
Status

Active

Version

1.0

Component

Code

Created by

πŸ‡­πŸ‡ΊHungary Balu Ertl Budapest πŸ‡ͺπŸ‡Ί

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.69.0 2024