<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.appian.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>File upload field uploading document even on cancel scenario</title><link>https://community.appian.com/discussions/f/general/10675/file-upload-field-uploading-document-even-on-cancel-scenario</link><description>Hi All, 
 We have a requirement to upload a document which creates a new version of the existing document upon click of &amp;#39;Submit&amp;#39; button and do not create upon click of &amp;#39;Cancel button&amp;#39; (both buttons will submit the form). 
 Currently, Submitting the form</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: File upload field uploading document even on cancel scenario</title><link>https://community.appian.com/thread/48729?ContentTypeID=1</link><pubDate>Fri, 22 Sep 2017 03:01:05 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:1c235da1-3b8b-40d5-bbfd-5a43a8a2da4a</guid><dc:creator>rajats246</dc:creator><description>Hi, I was also facing the same issue. But if user deselect the file from file upload field at that time it won&amp;#39;t upload it . So I tried to force the user to remove the file from the file upload field to cancel . For that purpose I used disable functionality of cancel button.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: File upload field uploading document even on cancel scenario</title><link>https://community.appian.com/thread/46579?ContentTypeID=1</link><pubDate>Thu, 06 Jul 2017 14:28:50 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:8e4d62ea-0380-4bf3-9d9f-99852ecb0bae</guid><dc:creator>Mike Schmitt</dc:creator><description>Along with the other prior commentors, our system also handles document versioning via a custom-built system (moving it around different target folders, with designated folders for &amp;quot;current versions&amp;quot;, &amp;quot;old versions&amp;quot; and &amp;quot;deleted versions&amp;quot;.  &lt;br /&gt;
&lt;br /&gt;
This handles frustrations like you mention, as well as the fact that Appian versioning doesn&amp;#39;t allow for a new version to be created with a document of a different extension (so users would try to replace a &amp;quot;.doc&amp;quot; with a &amp;quot;.docx&amp;quot; and not understand why they couldn&amp;#39;t - partly because Windows still stupidly hides extenions by default, even though it&amp;#39;s now 2017 and not 1997...)&lt;br /&gt;
&lt;br /&gt;
However i&amp;#39;m dismayed to hear that not even nulling-out the uploaded document when &amp;quot;cancel&amp;quot; is clicked woult prevent the existing version from being overwritten.  This does seem like a gap in functionality.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: File upload field uploading document even on cancel scenario</title><link>https://community.appian.com/thread/46577?ContentTypeID=1</link><pubDate>Thu, 06 Jul 2017 12:29:50 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:66db5c67-74c7-460d-9c72-5de54b116f4a</guid><dc:creator>venkateshamu</dc:creator><description>@nathan.schmitz @aloks176, Thanks for the suggestion, we are already handling this issue as sameway that you are mentioned. &lt;br /&gt;
I am hoping that appian will provide some functionality to handle this situation in feature releases.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: File upload field uploading document even on cancel scenario</title><link>https://community.appian.com/thread/46576?ContentTypeID=1</link><pubDate>Thu, 06 Jul 2017 12:21:39 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:89145bea-1c62-45c6-be96-dea78fa2189c</guid><dc:creator>aloks0189</dc:creator><description>&lt;a href="/members/venkateshamu"&gt;venkateshamu&lt;/a&gt; I agree with &lt;a href="/members/nathan.schmitz"&gt;nathan.schmitz&lt;/a&gt; and i also accept that, there are some scenarios where you want to work with multiple versions of the document, so if that&amp;#39;s deleted, may cause an issue.&lt;br /&gt;
&lt;br /&gt;
And as per my understanding, you are also having the similar kind of functionality, where the document will be uploaded as new version, so that you will have repository of each and every changes on a particular document.&lt;br /&gt;
&lt;br /&gt;
So the solution i feel is, you can create a table which will store document id&amp;#39;s with some relation with user and document type, now while uploading the document, try uploading it as an another document instead of creating as an another version, and store this document id against the same user and document type where the version will be (totalCount of document where condition will be:  uploaded by a user &amp;amp;&amp;amp; type of document +1), so in this way, you will have multiple documents available with you and whenever you want, can fetch document Id of any version of this document.&lt;br /&gt;
&lt;br /&gt;
I understand that, if you point a document in fileUploadField, it will create a new version, but you may get an issue when you want to retrieve or delete a particular version of the document.&lt;br /&gt;
&lt;br /&gt;
I think, you should have these R&amp;amp;D, it may satisfy your requirement&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: File upload field uploading document even on cancel scenario</title><link>https://community.appian.com/thread/46575?ContentTypeID=1</link><pubDate>Thu, 06 Jul 2017 12:03:59 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:f50427b8-c9ac-46a2-9553-57e867a1a058</guid><dc:creator>nathan.schmitz</dc:creator><description>I suggest that instead of relying on Appian document versioning, you create new documents and remove the old ones instead.  If you need to be able to &amp;quot;revert&amp;quot; back to previous versions of the documents, you keep previous versions.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: File upload field uploading document even on cancel scenario</title><link>https://community.appian.com/thread/46574?ContentTypeID=1</link><pubDate>Thu, 06 Jul 2017 09:15:08 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:83b0f71f-4a6b-4a2a-b424-f4747286cb72</guid><dc:creator>venkateshamu</dc:creator><description>Thanks for replay, this approch will not work for this scenarion why because in my case i am uploadint document as new version i.e,target is document, i can&amp;#39;t remove the latest version of document as their is no functionality in appian.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: File upload field uploading document even on cancel scenario</title><link>https://community.appian.com/thread/46563?ContentTypeID=1</link><pubDate>Wed, 05 Jul 2017 17:42:41 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:54b6fc35-60ec-4417-ac38-881000de14ed</guid><dc:creator>nathan.schmitz</dc:creator><description>I&amp;#39;ve used temporary folders for documents and folders for this express purpose.  After submission, I move it to the appropriate location.  Upon cancellation I delete the file.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>