Download only, without saving export?

Created on 9 March 2023, about 2 years ago

Problem/Motivation

The exports are being saved in the private file system, and I realized this will grow without ever cleaning up old downloaded exports. Is there a setting to have exports download immediately without saving the file? Or to have the files purged after a short while?

Steps to reproduce

Add an export to an existing view. Export the data. It saves to the private:// path.

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

💬 Support request
Status

Active

Version

1.0

Component

Code

Created by

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

Comments & Activities

  • Issue created by @solideogloria
  • Status changed to Fixed 4 months ago
  • 🇬🇧United Kingdom steven jones

    Hmmm...batched exports are saved as \Drupal\file\Entity\File and set as temporary, so they should be being cleaned up by Drupal on cron.

    I'm going to mark this as fixed, but do re-open if that's not the case, and your files are pilling up and not being deleted.

  • You're right. Files get deleted, but folders don't. I have a large number of empty folders inside private://views_data_export.

    Is there a way empty folders can be deleted?

  • Automatically closed - issue fixed for 2 weeks with no activity.

Production build 0.71.5 2024