Hi
C11
NT14.31
I want to limit the file types that get up loaded in the entry type fileupload to jpg, pdf and bmp.
There is a local variable whichi is : loc:AcceptTypes = 'image/*'
This is set in the template if I check allow images to be uploaded.
How and where can I limit them to uploading ONLY jpg, pdf and bmp files?
THanks,
ROn
BTW it is embedded in here so I do not have a chance to edit it:
If Not (1=0) ! SecFieldHideStateRtn
! --- FILE UPLOAD ---
loc:readonly = Choose(loc:viewonly,'readonly','')
loc:javascript = '' ! MakeFormJavaScript
loc:capture = net:Environment
loc:AcceptTypes = 'image/*'
loc:UseHTML5Uploader = 1
If loc:UseHTML5Uploader = 0 and loc:viewonly = 0
packet.append(p_web.CreateInput('File','JSRV:Envelope_photoname',p_web.GetSessionValueFormat('JSRV:Envelope_photoname'),loc:fieldclass,loc:readonly,loc:extra,,loc:javascript,p_web.PicLength('@s199'),'Press to select or take a picture of keys or envelope to upload','dropPhoto',,'',,,,'SM_UpdateJ_SRVREQ_SMALL_SCREEN',loc:AcceptTypes,loc:Capture,'') & p_web.CRLF)
ElsIf loc:viewonly = 0
loc:fieldclass = p_web.combine(loc:fieldclass,' nt-fileinput')