View Issue Details

This issue affects 1 person(s).
 6
IDProjectCategoryView StatusLast Update
09291Bug reportsOtherpublic2014-10-10 11:44
Reporterminnoce Assigned Toc_schmitz  
PrioritynormalSeverityminor 
Status closedResolutionnot fixable 
Product Version2.05+ 
Summary09291: File(s) not removed if survey cleared
Description

The file(s) uploaded by the "upload file" question type are not removed from the limesurvey filesystem ("upload/surveys/<SID>/files" folder) in case the user move backward/forward ("previous" / "next" buttons) or save the survey with the "resume later" function and finally press the "exit and clear survey" button.

Steps To Reproduce
  • Run a survey with at least one "upload file" mandatory question type and more than one question group or the "resume" option activated
  • Upload a file for that question and press one of the "previous"/"next" buttons or the "resume later" button (saving the survey)
  • At this point Limesurvey has saved the uploaded file in the "upload/surveys/<SID>/files" folder
  • Press the "exit and clear survey" (eventually resuming the survey if pressed "resume later" button in previous steps)
  • The responses are deleted from the survey (and from DB) but NOT the file uploaded in the survey folder
TagsNo tags attached.
Bug heat6
Complete LimeSurvey version number (& build)141003
I will donate to the project if issue is resolvedNo
Browser
Database type & versionMySQL 5.1
Server OS (if known)Linux (CentOS 5)
Webserver software & version (if known)Apache 2
PHP Version5.3
Git branch / Pull Request URL

Users monitoring this issue

cosimop, minnoce

Activities

c_schmitz

c_schmitz

2014-10-10 11:44

administrator   ~30774

There is no way to determine if an uploaded file was discarded or if the user is just waiting a long time to save it.
That is because the click on Exit/clear or Resume does not save questions that are not saved yet - therefore there is no connection to the files and it is orphaned.

Issue History

Date Modified Username Field Change
2014-10-09 12:48 minnoce New Issue
2014-10-09 12:56 minnoce Issue Monitored: minnoce
2014-10-09 12:57 cosimop Issue Monitored: cosimop
2014-10-10 11:44 c_schmitz Note Added: 30774
2014-10-10 11:44 c_schmitz Status new => closed
2014-10-10 11:44 c_schmitz Assigned To => c_schmitz
2014-10-10 11:44 c_schmitz Resolution open => not fixable