I'm using this module for education purpose and I received a bug report that the reviewers couldn't open up the files. After some digging into the code I noticed that the files are only uploaded with the temporary status, meaning that a all uploaded files are removed during a cron run.

The following line in the development code suggest that this simply hasn't been ported over from the Drupal 6 version:
line 244 //file_set_status($file, FILE_STATUS_PERMANENT);

Is there a specific reason behind the fact that the files are only uploaded with the temporary status or is this a bug?

Attached to this post is a patch with a fix to permanently save the files into the Drupal database.

Comments

  • da_cloud committed 749b3c1 on 7.x-4.x
    Issue #2337411 by da_cloud: Save files permanently
    
da_cloud’s picture

Status: Needs review » Fixed
da_cloud’s picture

Status: Fixed » Closed (fixed)