WBCE CMS Forum

WBCE CMS – Way Better Content Editing.

You are not logged in.

#1 01.08.2019 17:13:44

berrysad
Member

How to set up file upload to accept only certain file typess

Hello there again,

I almost have the form done.  I was wondering how I tell WBCE what file types I want the upload button to accept.  For example, in my case, I am totally blind and will accept .jpg but they need to be labeled with a picture name.  The other types of files I will accept are .doc, .docx, .txt.  I don't accept PDF files because they can be complicated for blind users to read at times depending on how the file is prepared.

Offline

#2 01.08.2019 17:38:28

florian
Administrator

Re: How to set up file upload to accept only certain file typess

Just add somewhere in the template this:

{WHITELIST doc,docx,txt,jpg}

To let the users know which kind of files can be uploaded, add sth. like

"Allowed file types: {UPLOAD_WHITELIST}"

to show the list to the users.

More information about the file upload field can be found here:
https://miniform.dev4me.com/template-he … le-upload/

Last edited by florian (01.08.2019 17:39:18)


Sorgen sind wie Nudeln: man macht sich meist zu viele.

Offline

Board footer

up