View Issue Details

IDProjectCategoryView StatusLast Update
17289Bug reportsQuestion themepublic2021-05-10 09:23
Reporterzufolo441 Assigned Toc_schmitz  
PrioritynoneSeverityfeature 
Status closedResolutionno change required 
Product Version4.5.x 
Summary17289: enhance file_upload theme
DescriptionIn LS 2 I patched file upload in order to permit download of files. For obtaining this feature I edited modaldialog.js. It works.
Now I need to do this in LS 4.5.

I found that file to be edited is application/views/survey/questions/answer/file_upload/answer.twig.

I have two questions:
1) I need further variables in order to reconstruct the download url:
   https://qsnap-ls.comune.napoli.it/upload/surveys/$surveyid/files/$filename
How can I import them in .twig file.
2) for avoiding to modify a distribution file, is there a way to do this in some question theme file? I didn't find documentation about question theming.
TagsNo tags attached.
Complete LimeSurvey version number (& build)4.6
I will donate to the project if issue is resolvedNo
Browser
Database & DB-VersionPostgreSQL
Server OS (if known)
Webserver software & version (if known)
PHP Version7.4

Relationships

related to 14664 new Development  Rework totally upload question type 

Activities

zufolo441

zufolo441

2021-05-07 18:27

reporter  

DenisChenu

DenisChenu

2021-05-07 18:33

developer   ~64293

1. My opinion : we must mofe to a better file_uploader system.
     - https://bugs.limesurvey.org/view.php?id=9376
     - https://bugs.limesurvey.org/view.php?id=14664
2. Some insipiration fro your purpose here https://gitlab.com/SondagesPro/QuestionSettingsType/answersAsReadonly/-/commit/8f69b482573319054d179bf9419b71539822edf5 ?
c_schmitz

c_schmitz

2021-05-10 09:23

administrator   ~64305

This is not a discussion forum. Please use forums.limesurvey.org if you want to ask question and/or discuss development related issues.

Issue History

Date Modified Username Field Change
2021-05-07 18:27 zufolo441 New Issue
2021-05-07 18:27 zufolo441 File Added: Screenshot_20210507_182505.png
2021-05-07 18:33 DenisChenu Note Added: 64293
2021-05-07 18:33 DenisChenu Relationship added related to 14664
2021-05-10 09:23 c_schmitz Assigned To => c_schmitz
2021-05-10 09:23 c_schmitz Status new => closed
2021-05-10 09:23 c_schmitz Resolution open => no change required
2021-05-10 09:23 c_schmitz Note Added: 64305