AnsweredAssumed Answered

Auto-set mimetype for files added via CIFS

Question asked by etech on May 15, 2013
Latest reply on May 15, 2013 by afaust

I would like to auto-set the mimetype for files that are uploaded via the CIFS file share. For example, all files dropped in the "textfiles" folder should have their mimetype set to "text/plain". I did this through the Share/UI by using a custom JavaScript that is run in a rule, but that doesn't apply to files added through CIFS. Here is what I did in the javascript:

<blockcode>document.mimetype = "text/plain";</blockcode>

Is there a similar way to do this for files added through CIFS?