<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://www.aras.com/community/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>PartItem.getfileproperty(&amp;quot;thumbnail&amp;quot;, filepath) fails to upload to vault</title><link>https://www.aras.com/community/f/development/36353/partitem-getfileproperty-thumbnail-filepath-fails-to-upload-to-vault</link><description>I am trying to upload a thumbnail image to a part item (innovator.part.thumbnail) 
 The method for this is the setfileproperty method. 
 I have written a function to do this, but it failt to create a new file in the vault. The other updates work fine</description><dc:language>ja-JP</dc:language><generator>Telligent Community 12</generator><item><title>RE: PartItem.getfileproperty("thumbnail", filepath) fails to upload to vault</title><link>https://www.aras.com/community/thread/6483?ContentTypeID=1</link><pubDate>Mon, 29 Mar 2021 09:14:22 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:6aa00da9-bb19-4b1c-9671-4d63a059fe57</guid><dc:creator>AngelaIp</dc:creator><description>&lt;p&gt;Do you want to solve everything in c#, or would a js / c# combination work for you?&lt;/p&gt;
&lt;p&gt;This is an earlier question I had regarding the file picker.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;a href="/f/development/6621/how-to-add-restrictions-to-aras-vault-selectfile-file-picker"&gt;https://community.aras.com/f/development/6621/how-to-add-restrictions-to-aras-vault-selectfile-file-picker&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Notice Chris&amp;acute; sample for uploading file. I myself use a variant of this one to upload my local files and build items from them.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:75%;"&gt;&lt;code&gt;&lt;span class="hljs-regexp"&gt;---&lt;/span&gt;&lt;/code&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:75%;"&gt;You liked this answer? Visit my&amp;nbsp;&lt;a href="https://www.youtube.com/channel/UCLqtWrKtuEzTb5ntjObkOLA"&gt;Youtube&amp;nbsp;&lt;/a&gt;channel!!!&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: PartItem.getfileproperty("thumbnail", filepath) fails to upload to vault</title><link>https://www.aras.com/community/thread/6481?ContentTypeID=1</link><pubDate>Fri, 26 Mar 2021 14:40:20 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:4646238d-b756-40f5-8f81-f9a5400b7a05</guid><dc:creator>KentKeller</dc:creator><description>&lt;p&gt;Thank you for your reply.&amp;nbsp; The strImagePath variable&amp;nbsp;= &amp;quot;C:\Users\kkeller\Pictures\111080-01.bmp&amp;quot;&lt;/p&gt;
&lt;p&gt;This file lives on the server, which is the local machine in my case right now (having failed using an unc path in a shared Aras environment, I attempted to eliminate possible problems by restricting to one box).&lt;/p&gt;
&lt;p&gt;I am aware that the file in the innovator.part.thumbnail field is something like &amp;quot;vault:///?fileId=D5612B10085449F5AD7B22155B106E43&amp;quot;, if you select a file with the normal interface, and this is working; eliminating a file permission error.&lt;/p&gt;
&lt;p&gt;Looking at the innovator.file table, I found the file that I uploaded manually to another item.&amp;nbsp; Using the found ID, I then executed the following line:&lt;/p&gt;
&lt;p&gt;PartItem.setProperty(&amp;quot;thumbnail&amp;quot;, &amp;quot;vault:///?fileId=D5612B10085449F5AD7B22155B106E43&amp;quot;)&lt;/p&gt;
&lt;p&gt;This worked.&amp;nbsp; So the problem is the actual uploading of the file to the vault, not the updating of the innovator.part.thumbnail field.&lt;/p&gt;
&lt;p&gt;As I stated, the innovator.part.thumbnail does get some unknown GUID, but no new entry appears in the innovator.file table.&lt;/p&gt;
&lt;p&gt;If I could find a function that simply vaults a file, I could do this in two steps.&lt;/p&gt;
&lt;p&gt;But, for now, I am stalled out.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: PartItem.getfileproperty("thumbnail", filepath) fails to upload to vault</title><link>https://www.aras.com/community/thread/6478?ContentTypeID=1</link><pubDate>Fri, 26 Mar 2021 07:31:41 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:6953df62-45e5-4144-8b53-612cc2411fb5</guid><dc:creator>AngelaIp</dc:creator><description>&lt;p&gt;Hi Kent,&lt;/p&gt;
&lt;p&gt;I am not sure if you can use&amp;nbsp;&amp;quot;setFileProperty&amp;quot; for uploading thumbnails. Regular &amp;quot;file&amp;quot; properties just contain the id of the file. The thumbnail property works different. Take a look at an existing thumbnail property and check the property value. It&amp;acute;s something similar to &amp;quot;vault://12345&amp;quot;.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;How does your &amp;quot;&lt;span&gt;strImagePath&amp;quot; look like? Does it contain the vaulted file already or is it a link to a local file on your pc? In this case you have to upload the file&lt;/span&gt; before you can set is at property.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Angela&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>