Quiz File Upload - uploaded files disappearing?

major
Hi, I have some lessons in my LMS, that are using the quiz file upload-type. I noticed that after few days (after cron-run I believe), I'm unable to see the uploaded files from the results. I'm quite clueless at the moment, but I found this discussion from drupal forums: https://www.drupal.org/node/2337411. Do you believe that this is also causing problems on my site? Have you noticed this and is this already fixed somehow in Opigno?
axel

Hi major,

Hi major,

Thanks for reporting this.

We will check this point and the patch for the next Opigno release.

I opened an issue here: https://www.drupal.org/node/2491705

Best regards,

major

Hi,

Hi, would you suggested to fix this with the patch from https://www.drupal.org/node/2337411? I think it is quite critical (at least for my system), and would like to fix it asap!
Profile picture for user James Aparicio
James Aparicio

Hi major,

Hi major,

In the file quizfileupload.classes.inc, there is a function:

  public function save() { After:     $this->file = file_save_upload('tries', $validator, 'public://'); Just add $this->file->status = FILE_STATUS_PERMANENT; file_save($this->file);  Best regards