<?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 show error message on dropzone when file upload is not valid? in Nuxeo Forum</title>
    <link>https://connect.hyland.com/t5/nuxeo-forum/how-to-show-error-message-on-dropzone-when-file-upload-is-not/m-p/323258#M10259</link>
    <description>&lt;P&gt;Hi Everybody,&lt;/P&gt;
&lt;P&gt;When I set my nuxeo-dropzone element and restrict it to pdf file type, I want to be able to display an error message that it cannot load the file.&lt;/P&gt;
&lt;P&gt;It fails silently if you upload a type that's not accepted.&lt;/P&gt;
&lt;P&gt;Example,&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;	&amp;lt;nuxeo-dropzone document="{{document}}" xpath="myDoc:myPath" label="File Example" accept=".pdf" required="true" &amp;gt;&amp;lt;/nuxeo-dropzone&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Is it possible to catch the event and show an error message?&lt;/P&gt;
&lt;P&gt;Thanks!&lt;/P&gt;</description>
    <pubDate>Sat, 22 Aug 2020 02:08:58 GMT</pubDate>
    <dc:creator>Gabino_Reyes</dc:creator>
    <dc:date>2020-08-22T02:08:58Z</dc:date>
    <item>
      <title>How to show error message on dropzone when file upload is not valid?</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/how-to-show-error-message-on-dropzone-when-file-upload-is-not/m-p/323258#M10259</link>
      <description>&lt;P&gt;Hi Everybody,&lt;/P&gt;
&lt;P&gt;When I set my nuxeo-dropzone element and restrict it to pdf file type, I want to be able to display an error message that it cannot load the file.&lt;/P&gt;
&lt;P&gt;It fails silently if you upload a type that's not accepted.&lt;/P&gt;
&lt;P&gt;Example,&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;	&amp;lt;nuxeo-dropzone document="{{document}}" xpath="myDoc:myPath" label="File Example" accept=".pdf" required="true" &amp;gt;&amp;lt;/nuxeo-dropzone&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Is it possible to catch the event and show an error message?&lt;/P&gt;
&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Sat, 22 Aug 2020 02:08:58 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/how-to-show-error-message-on-dropzone-when-file-upload-is-not/m-p/323258#M10259</guid>
      <dc:creator>Gabino_Reyes</dc:creator>
      <dc:date>2020-08-22T02:08:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to show error message on dropzone when file upload is not valid?</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/how-to-show-error-message-on-dropzone-when-file-upload-is-not/m-p/323259#M10260</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I've taken a look at the element (&lt;A href="https://github.com/nuxeo/nuxeo-web-ui/blob/10.10/elements/nuxeo-dropzone/nuxeo-dropzone.html"&gt;https://github.com/nuxeo/nuxeo-web-ui/blob/10.10/elements/nuxeo-dropzone/nuxeo-dropzone.html&lt;/A&gt;) and it seems we don't have a specific error message for the accepted format. So the best  would  be to update the error  messages with something like &lt;CODE&gt;File not uploaded. Make sure the file extension is correct&lt;/CODE&gt; for &lt;A href="https://github.com/nuxeo/nuxeo-web-ui/blob/10.10/i18n/messages.json#L504"&gt;https://github.com/nuxeo/nuxeo-web-ui/blob/10.10/i18n/messages.json#L504&lt;/A&gt;. I would also update the &lt;CODE&gt;message&lt;/CODE&gt; attribute to indicate clearly to the user the file extensions you're expecting (&lt;A href="https://github.com/nuxeo/nuxeo-web-ui/blob/10.10/elements/nuxeo-dropzone/nuxeo-dropzone.html#L234"&gt;https://github.com/nuxeo/nuxeo-web-ui/blob/10.10/elements/nuxeo-dropzone/nuxeo-dropzone.html#L234&lt;/A&gt;).&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Sat, 22 Aug 2020 14:18:58 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/how-to-show-error-message-on-dropzone-when-file-upload-is-not/m-p/323259#M10260</guid>
      <dc:creator>Gregory_Carlin</dc:creator>
      <dc:date>2020-08-22T14:18:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to show error message on dropzone when file upload is not valid?</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/how-to-show-error-message-on-dropzone-when-file-upload-is-not/m-p/323260#M10261</link>
      <description>&lt;P&gt;Thanks for your aswer, but I don't have the hoifix for solution problem, but a found a custom resolution.&lt;/P&gt;
&lt;P&gt;Regards.&lt;/P&gt;</description>
      <pubDate>Tue, 17 Nov 2020 19:00:47 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/how-to-show-error-message-on-dropzone-when-file-upload-is-not/m-p/323260#M10261</guid>
      <dc:creator>Gabino_Reyes</dc:creator>
      <dc:date>2020-11-17T19:00:47Z</dc:date>
    </item>
  </channel>
</rss>

