View Issue Details

This bug affects 1 person(s).
 6
IDProjectCategoryView StatusLast Update
18560Bug reportsSurvey editingpublic2023-03-31 09:16
Reportertammo Assigned To 
PrioritynoneSeverityminor 
Status closedResolutionno change required 
Product Version5.4.x 
Summary18560: When copy survey, also copy the resources
Description

When copying a survey within the admin interface it would be great if all images/resources were also copied.

When exporting a survey that contains images, at least warn the user that the original survey contains images that will not be exported.

Steps To Reproduce

Steps to reproduce

Copy survey containing images

Expected (hoped for) result

The survey copy contains the same images as the original

Actual result

All images are gone, only references to non-existent images in the new survey's image directory exist.

TagsNo tags attached.
Bug heat6
Complete LimeSurvey version number (& build)All
I will donate to the project if issue is resolvedNo
BrowserAll
Database type & versionAll
Server OS (if known)All
Webserver software & version (if known)All
PHP VersionAll

Users monitoring this issue

There are no users monitoring this issue.

Activities

DenisChenu

DenisChenu

2022-12-16 17:41

developer   ~73165

Last edited: 2022-12-16 17:42

Except the user file in my opinion (i mean the fu_XXXX if you have upload question type)

tammo

tammo

2022-12-16 18:00

developer   ~73166

Last edited: 2022-12-16 18:00

Or at least notify the user that copies the survey that there are additional resources and that they need to be copied also.

tammo

tammo

2022-12-16 18:02

developer   ~73167

@denis: not sure what file you mean.

I refer to images that are used in question texts and in answer options.

DenisChenu

DenisChenu

2022-12-16 18:02

developer   ~73168

Last edited: 2022-12-16 18:04

I think copied resource is a good idea (maybe with a checkbox) :)
Like export LSA must export resource (with option (if you have a big video for example))

Except for Respondent uploaded files : when the question was created : a bad place is set for this … using same directory than survey resources …

I refer to images that are used in question texts and in answer options.

Yes , image or PDF or docs used in survey (uploaded by admin user), but not file uploaded by participant.
When developer work on it : it must be avoided to copŷ all fu_XXXX files

If you create a Upload question type : you find this file at the same place than image or other file …

tammo

tammo

2022-12-16 19:28

developer   ~73169

Exported LSA could be a zip with previous LSA plus resources and instruction on how to restore.

tammo

tammo

2022-12-16 19:28

developer   ~73170

I agree on uploads, but even they could be copied to new survey...

DenisChenu

DenisChenu

2022-12-16 19:31

developer   ~73171

I agree on uploads, but even they could be copied to new survey...

Allow to upload PDF, size : between 1Mo and 3Mo, already compressed … file of 200Mo with only 100 participants, unable to import in another instance
We have the same issue with image : with big and a lot of image : you can go up to 2Mo, then need option for export survey without files.

tammo

tammo

2022-12-17 17:38

developer   ~73172

@Denis: I fully agree on not downloading all uploads when you download a survey structure or an LSA file.

It could be an option when you copy a survey within the LimeSurvey backend: then a download is not necessary.

But before we make this too big: let's focus on the survey structure itself: so on the resources that are needed for the front end of the survey: images, video's etc.

DenisChenu

DenisChenu

2022-12-17 17:40

developer   ~73173

Last edited: 2022-12-17 17:41

Perfect situation

LSA export

  • With survey files [x] (checkbox checked)
  • With user uploaded files [ ] (checkbox not checked)

Copy survey

  • With survey files [x] (checkbox checked)
  • With token and response [ ] (checkbox not checked)
  • With user uploaded files [ ] (checkbox not checked)
tammo

tammo

2022-12-17 17:48

developer   ~73174

Right, that would be perfect!

tammo

tammo

2022-12-17 17:51

developer   ~73175

Please start with:

  • LSA export
    With survey resource files (images, videos) [x] (checkbox checked)

  • Copy survey
    With survey files resource files (images, videos) [x] (checkbox checked)

gabrieljenik

gabrieljenik

2023-03-23 22:11

manager   ~74262

Sorry to jump in, but there is already a "copy resources" checkbox.
Not sure if you that was taken into account when going throgh the story

image.png (12,003 bytes)   
image.png (12,003 bytes)   
gabrieljenik

gabrieljenik

2023-03-23 22:15

manager   ~74263

I suggest to create another ticket for the LSA export

DenisChenu

DenisChenu

2023-03-24 07:56

developer   ~74266

I suggest to create another ticket for the LSA export

Yes, and it's clearly a feature request here.

gabrieljenik

gabrieljenik

2023-03-24 14:28

manager   ~74281

So this should be closed and a new one opened?

DenisChenu

DenisChenu

2023-03-24 16:05

developer   ~74283

So this should be closed and a new one opened?

If current checkbox work : yes , i think @tammo ?

tammo

tammo

2023-03-31 09:15

developer   ~74324

Yes! Can be closed now.

Issue History

Date Modified Username Field Change
2022-12-16 17:40 tammo New Issue
2022-12-16 17:41 DenisChenu Note Added: 73165
2022-12-16 17:41 DenisChenu Bug heat 0 => 2
2022-12-16 17:42 DenisChenu Note Edited: 73165
2022-12-16 18:00 tammo Note Added: 73166
2022-12-16 18:00 tammo Bug heat 2 => 4
2022-12-16 18:00 tammo Note Edited: 73166
2022-12-16 18:02 tammo Note Added: 73167
2022-12-16 18:02 DenisChenu Note Added: 73168
2022-12-16 18:04 DenisChenu Note Edited: 73168
2022-12-16 19:28 tammo Note Added: 73169
2022-12-16 19:28 tammo Note Added: 73170
2022-12-16 19:31 DenisChenu Note Added: 73171
2022-12-17 17:38 tammo Note Added: 73172
2022-12-17 17:40 DenisChenu Note Added: 73173
2022-12-17 17:41 DenisChenu Note Edited: 73173
2022-12-17 17:48 tammo Note Added: 73174
2022-12-17 17:51 tammo Note Added: 73175
2022-12-22 22:31 gabrieljenik Status new => confirmed
2023-03-23 22:11 gabrieljenik Note Added: 74262
2023-03-23 22:11 gabrieljenik File Added: image.png
2023-03-23 22:11 gabrieljenik Bug heat 4 => 6
2023-03-23 22:15 gabrieljenik Note Added: 74263
2023-03-24 07:56 DenisChenu Note Added: 74266
2023-03-24 14:28 gabrieljenik Note Added: 74281
2023-03-24 16:05 DenisChenu Note Added: 74283
2023-03-31 09:15 tammo Note Added: 74324
2023-03-31 09:16 tammo Status confirmed => closed
2023-03-31 09:16 tammo Resolution open => no change required