Process Mapping Logo

Process Mapping - Forums

Sharing 19 years of knowledge and experience

 
Metastorm BPM forums
Sign up Latest Topics
 
 
 


Reply
  Author   Comment  
gfield

Avatar / Picture

Senior Member
Registered:
Posts: 61
Reply with quote  #1 
Hi
I have a process where uses can log their expenses and then attach a photo or scan of their receipts. These are mainly home workers using their own kit.

Is there a way I can restrict which file extensions the UploadFile page will accept. I'd rather they only uploaded jpgs, pdfs, rtfs and Tiff files.

Many thanks


__________________
Cheers Graham Field
0
BMellert

Guru
Registered:
Posts: 688
Reply with quote  #2 
Personally, at least using the native single- or multi-clip, I don't believe so -- at least without modifying built-in functionality which would not be supported and could break with future hot fixes/patches/upgrades.  (Even then I'm not sure that would be possible.)

Others may know more though, or have create their own flavor they may be willing to offer a few bits of knowledge.
0
JoeOmerta

Veteran
Registered:
Posts: 210
Reply with quote  #3 
I do something like this...


//check for msg files(emails)
if (Mstm.SelectSql(new MetastormDefault(), "SELECT COUNT(*) FROM eAttachment WHERE eKey LIKE '%"+ProcessContext.FolderId+"%.msg%'").Integer>0)
{
  ProcessContext.UserError = "You can NOT attach any e-mail messages.  Please remove the email message, print it to pdf, and attach the pdf.";
}
//check for exe files(applications)
if (Mstm.SelectSql(new MetastormDefault(), "SELECT COUNT(*) FROM eAttachment WHERE eKey LIKE '%"+ProcessContext.FolderId+"%.exe%'").Integer>0)
{
  ProcessContext.UserError = "You can NOT attach any executable files.  Please remove the executable file.";
}
0
BMellert

Guru
Registered:
Posts: 688
Reply with quote  #4 
That would be on form save, but it looks like it work.
0
Previous Topic | Next Topic
Print
Reply

Quick Navigation:


Create your own forum with Website Toolbox!