- Posts: 4
- Thank you received: 0
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
Renaming uploaded file
- poojark66
- Topic Author
- Offline
- New Member
Less
More
6 years 4 weeks ago #166124
by poojark66
Renaming uploaded file was created by poojark66
Hi everyone,
I want to rename the uploaded files to the survey based on other fields entry.
Keep the file original uploaded name. (secure it by removing specific characters)
Add a naming convention before the file name when storing it.
For example
#1 – The file name is: « Guideline for child and adolescents » and it is the third file uploaded by Italy ;
speaking of topics Reproductive ; Child and Adolescents. The file should be then stored as :
« ITA03R__CA- Guideline for child and adolescents »
I tried searching this topic in the forum but did not get any satisfactory answer
I want to rename the uploaded files to the survey based on other fields entry.
Keep the file original uploaded name. (secure it by removing specific characters)
Add a naming convention before the file name when storing it.
For example
#1 – The file name is: « Guideline for child and adolescents » and it is the third file uploaded by Italy ;
speaking of topics Reproductive ; Child and Adolescents. The file should be then stored as :
« ITA03R__CA- Guideline for child and adolescents »
I tried searching this topic in the forum but did not get any satisfactory answer
The topic has been locked.
- Joffm
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 12908
- Thank you received: 3975
6 years 4 weeks ago #166143
by Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
Replied by Joffm on topic Renaming uploaded file
Hi,
while I do not see any reason in renaming the UPLOADED file, you get in the DOWNLOADED files the anwerID and a key.
See:
www.limesurvey.org/forum/can-i-do-this-w...l-folders-in-the-zip
This should be sufficient to add some more information to the filename by merging.
Regards
Joffm
while I do not see any reason in renaming the UPLOADED file, you get in the DOWNLOADED files the anwerID and a key.
See:
www.limesurvey.org/forum/can-i-do-this-w...l-folders-in-the-zip
This should be sufficient to add some more information to the filename by merging.
Regards
Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
The topic has been locked.
- jelo
- Offline
- Platinum Member
Less
More
- Posts: 5033
- Thank you received: 1257
6 years 4 weeks ago #166147
by jelo
Reason #2: The files are not downloaded via the LimeSurvey function. Since LS isn't offering any automatic/triggered exporting, there is a need to transport uploaded files via a script.
Applying a file mask and allow to define filenames (not only for uploads but also for downloads), sound like a feature request. When such a systematic name scheme is applied, the storage of the files shouldn't be inside the webroot.
The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users
Replied by jelo on topic Renaming uploaded file
Reason #1: People are not aware of the renamed files inside the archive.Joffm wrote: while I do not see any reason in renaming the UPLOADED file
Reason #2: The files are not downloaded via the LimeSurvey function. Since LS isn't offering any automatic/triggered exporting, there is a need to transport uploaded files via a script.
Applying a file mask and allow to define filenames (not only for uploads but also for downloads), sound like a feature request. When such a systematic name scheme is applied, the storage of the files shouldn't be inside the webroot.
The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users
The topic has been locked.