<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic How to filter upload File in Nuxeo Forum</title>
    <link>https://connect.hyland.com/t5/nuxeo-forum/how-to-filter-upload-file/m-p/327287#M14288</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I'm using File in nuxeo studio to upload file.&lt;/P&gt;
&lt;P&gt;How to can I upload only the .doc or .pdf file when I upload a file ?&lt;/P&gt;
&lt;P&gt;I would like upload only the .doc or pdf file.&lt;/P&gt;
&lt;P&gt;Thanks a lot.&lt;/P&gt;</description>
    <pubDate>Thu, 19 Feb 2015 16:34:52 GMT</pubDate>
    <dc:creator>arbenghanam_</dc:creator>
    <dc:date>2015-02-19T16:34:52Z</dc:date>
    <item>
      <title>How to filter upload File</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/how-to-filter-upload-file/m-p/327287#M14288</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I'm using File in nuxeo studio to upload file.&lt;/P&gt;
&lt;P&gt;How to can I upload only the .doc or .pdf file when I upload a file ?&lt;/P&gt;
&lt;P&gt;I would like upload only the .doc or pdf file.&lt;/P&gt;
&lt;P&gt;Thanks a lot.&lt;/P&gt;</description>
      <pubDate>Thu, 19 Feb 2015 16:34:52 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/how-to-filter-upload-file/m-p/327287#M14288</guid>
      <dc:creator>arbenghanam_</dc:creator>
      <dc:date>2015-02-19T16:34:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to filter upload File</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/how-to-filter-upload-file/m-p/327288#M14289</link>
      <description>&lt;P&gt;You can create your own custom widget based on &lt;A href="https://github.com/nuxeo-archives/nuxeo-dm/blob/master/nuxeo-platform-webapp/src/main/resources/web/nuxeo.war/widgets/extended_file_widget.xhtml"&gt;extended_file_widget&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;In the create/edit part of the widget, at the bottom, you can add a &lt;A href="http://community.nuxeo.com/api/nuxeo/release-6.0/tlddoc/nxu/validateFileMimetype.html"&gt;validateFileMimetype&lt;/A&gt; mark to limit which formats can be uploaded. This last page gives you an example at the top.&lt;/P&gt;</description>
      <pubDate>Thu, 12 Nov 2015 15:55:51 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/how-to-filter-upload-file/m-p/327288#M14289</guid>
      <dc:creator>Greg_Drayon</dc:creator>
      <dc:date>2015-11-12T15:55:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to filter upload File</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/how-to-filter-upload-file/m-p/327289#M14290</link>
      <description>&lt;P&gt;Create a new widget type "&lt;STRONG&gt;mywidget&lt;/STRONG&gt;" . Define&lt;/P&gt;
&lt;P&gt;&lt;CODE&gt;&amp;lt;property name="template"&amp;gt;/widgets/mywidget_widget_template.xhtml&amp;lt;/property&amp;gt;&lt;/CODE&gt;
in the widget type.&lt;/P&gt;
&lt;P&gt;Restrict the extensions that you want in &lt;STRONG&gt;mywidget_widget_template.xhtml&lt;/STRONG&gt; file&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;  &amp;lt;c:set var="acceptedExtensions"
    value="#{nxu:test(!empty widgetProperty_acceptedExtensions, widgetProperty_acceptedExtensions, '.jpg, .jpeg, .png, .gif, .tif, .tiff, .psd, .raw, .ai, .svg, .ps, .eps, .epsi, .epsf, .xcf, .bmp')}" /&amp;gt;

  &amp;lt;nxu:inputFile id="#{widget.id}" value="#{field}"
    filename="#{field.filename}" required="#{widgetProperty_required}" editFilename="false"
    onclick="#{widgetProperty_onclick}" onchange="#{widgetProperty_onchange}"&amp;gt;
  &amp;lt;/nxu:inputFile&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;That's all. Hope this helps &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; Happy Development &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 12 Feb 2016 10:23:25 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/how-to-filter-upload-file/m-p/327289#M14290</guid>
      <dc:creator>Pradeep_Bhat</dc:creator>
      <dc:date>2016-02-12T10:23:25Z</dc:date>
    </item>
  </channel>
</rss>

