2 posts / 0 new
Last post
Hamish
Offline
Last seen: 3 months 1 week ago
Joined: 06/18/2019
Allowed Extension in upload activity

Hi all,

I am having an issue changing the "Allowed extension" in the "File upload" activity.

When I make the activity, I list the ""Allowed Extension" as "jpg png pdf" rather than the default "txt doc docx xls xlsx ppt pptx pdf odt ods odp"

However, when doing the activity, the user is limited only to the default list: "Allowed types: txt doc docx xls xlsx ppt pptx pdf odt ods odp."

Is there a reason for this and is there anyway to upload images if not by this method.

Any help is appreciated.

Thanks,

axel
Offline
Last seen: 1 day 4 hours ago
Staff
Joined: 09/25/2013
Hi.

Hi.

There are no interface at the moment to manage the file extensions, they come from yml configs:
 
modules/opigno/opigno_module/ActivityTypes/opigno_file_upload/config/optional/field.field.opigno_answer.opigno_file_upload.opigno_file.yml
 
modules/opigno/opigno_module/ActivityTypes/opigno_file_upload/config/optional/field.field.opigno_activity.opigno_file_upload.opigno_allowed_extension.yml
 
You can simply edit these configs and re-import them.