<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
<channel>
<title>Efficy Overflow Q&amp;A - Recent questions tagged file-sharing</title>
<link>https://overflow.efficy.io/?qa=tag/file-sharing</link>
<description>Powered by Question2Answer</description>
<item>
<title>Error in document sharing link</title>
<link>https://overflow.efficy.io/?qa=6221/error-in-document-sharing-link</link>
<description>&lt;p&gt;Hello,&lt;/p&gt;

&lt;p&gt;On the customer's guest page, you can download a document but the link is wrong:&lt;/p&gt;

&lt;p&gt;&lt;a rel=&quot;nofollow&quot; href=&quot;https://bozar.efficy.cloud/file/download?p=jj34qXnKDY-T-ziRP9&quot;&gt;https://bozar.efficy.cloud/file/download?p=jj34qXnKDY-T-ziRP9&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The correct link to download the file is:&lt;/p&gt;

&lt;p&gt;&lt;a rel=&quot;nofollow&quot; href=&quot;https://files.efficy.cloud/file/download?p=jj34qXnKDY-T-ziRP9&quot;&gt;https://files.efficy.cloud/file/download?p=jj34qXnKDY-T-ziRP9&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;To generate the link, we use the &quot;Efficy.create Sharing Token&quot; function and I think there is a bad configuration in the designer.&lt;br&gt;
Anyone know which parameter is in error ?&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;https://overflow.efficy.io/?qa=blob&amp;amp;qa_blobid=716830354504337083&quot; alt=&quot;enter image description here&quot;&gt;&lt;/p&gt;

&lt;p&gt;Thanks in advance,&lt;br&gt;
Quentin&lt;/p&gt;
</description>
<category>Guest</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=6221/error-in-document-sharing-link</guid>
<pubDate>Thu, 08 Jul 2021 14:10:05 +0000</pubDate>
</item>
<item>
<title>What are the configurations for public link share</title>
<link>https://overflow.efficy.io/?qa=5992/what-are-the-configurations-for-public-link-share</link>
<description>&lt;p&gt;Hi everyone,&lt;/p&gt;

&lt;p&gt;My customer is on Efficy 2021.&lt;br&gt;
I have done the configuration for the public link share in document in my SYS_SETTINGS :&lt;/p&gt;

&lt;p&gt;&quot;servicy&quot;: {&lt;br&gt;
    &quot;adminMail&quot;: &quot;~&quot;, &lt;br&gt;
    &quot;createLogFile&quot;: 2, &lt;br&gt;
    &quot;sameServerAsEfficy&quot;: 0, &lt;br&gt;
    &quot;fileMaxSize&quot;: 4294967295, &lt;br&gt;
    &quot;fileMinSize&quot;: 33554432, &lt;br&gt;
    &quot;fileUrl&quot;: &quot;~&quot;, &lt;br&gt;
    &quot;fileRepository&quot;: &quot;~&quot;, &lt;br&gt;
    &quot;fileTempUpload&quot;: &quot;~&quot;, &lt;br&gt;
    &quot;url&quot;: &quot;&lt;a rel=&quot;nofollow&quot; href=&quot;https:\/\/my.domain.com\/servicy.dll&quot;&gt;https:\/\/my.domain.com\/servicy.dll&lt;/a&gt;&quot;, &lt;br&gt;
    &quot;userPasswordUrl&quot;: &quot;&lt;a rel=&quot;nofollow&quot; href=&quot;https:\/\/my.domaind.com\/pwd&quot;&gt;https:\/\/my.domaind.com\/pwd&lt;/a&gt;&quot;, &lt;br&gt;
    &quot;customerForExtranet&quot;: &quot;~&quot;&lt;br&gt;
  },&lt;/p&gt;

&lt;p&gt;I can generate public link in interface and use it to access to the download page but when I click on the document (pdf or docx) I get an error 404.&lt;/p&gt;

&lt;p&gt;I guess I forgot something or did I configurate it wrong ?&lt;/p&gt;

&lt;p&gt;Thanks&lt;/p&gt;

&lt;p&gt;Nico&lt;/p&gt;
</description>
<category>Efficy Designer (Conficy)</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=5992/what-are-the-configurations-for-public-link-share</guid>
<pubDate>Tue, 23 Mar 2021 07:18:50 +0000</pubDate>
</item>
<item>
<title>Creating Public Share Link for document</title>
<link>https://overflow.efficy.io/?qa=5124/creating-public-share-link-for-document</link>
<description>&lt;p&gt;Dear All,&lt;/p&gt;

&lt;p&gt;I have managed to create a public shared link for a document (cf function bellow), but when I click on the link I get the following error message :&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;https://overflow.efficy.com/?qa=blob&amp;amp;qa_blobid=9903466780946753228&quot; alt=&quot;Error downloading the public files&quot;&gt;&lt;/p&gt;

&lt;p&gt;My link seems ok, after I added in SYS_SETTINGS.Common.servicy.url, the URL for downloading the files : &lt;/p&gt;

&lt;pre&gt;&lt;code&gt;&quot;url&quot;: &quot;https:\/\/[**MY_EFFICY_URL_FOR_MY_CUSTOMER**]\/file&quot;,
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Result URL:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;https://[**MY_EFFICY_URL_FOR_MY_CUSTOMER**]/file/list?p=zX2t6lwuB8BIizheNv
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Does anyone knows what I am missing ?&lt;/p&gt;

&lt;p&gt;here is the function I used to generate the Public Shared URL: &lt;/p&gt;

&lt;pre&gt;&lt;code&gt;function getSharingDocURL(kDocu) {
var sqlToken ='select &amp;lt;#top count=&quot;1&quot;&amp;gt; TVALUE \
from &amp;lt;#table name=&quot;SYS_TOKENS&quot;&amp;gt; \
where k_table = 31000 and k_1 = :param1 \
order by d_create desc';
var dsToken = Efficy.sqlQueryDataset(sqlToken, kDocu, 100);
var tokenUrl = '';
var sharingToken = '';
if (dsToken.recordCount &amp;gt; 0) {
sharingToken = dsToken.FieldByName('TVALUE').AsString;
if (sharingToken != '') {
tokenUrl = encodeURI(Efficy.CreateTokenURL(ntDocu, sharingToken));
}
} else {
var contextHandle = Efficy.openConsultContext(ntDocu);
try {
var dsDocu = Efficy.consult(contextHandle, kDocu, true), sharingToken;
if (dsDocu &amp;amp;&amp;amp; dsDocu.recordCount &amp;gt; 0 &amp;amp;&amp;amp; dsDocu.fieldByName('PREVENTSHARING').asString !== '1')
tokenUrl = encodeURI(Efficy.createSharingToken(ntDocu, kDocu, 0, 90)); //Keep the link 90 days opened
}
finally {
Efficy.closeContext(contextHandle);
}
}
return tokenUrl;
}
&lt;/code&gt;&lt;/pre&gt;
</description>
<category>WorkFlow / Serverscript</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=5124/creating-public-share-link-for-document</guid>
<pubDate>Mon, 09 Dec 2019 12:59:19 +0000</pubDate>
</item>
<item>
<title>Workflow event when public link is reached / is downloaded</title>
<link>https://overflow.efficy.io/?qa=4236/workflow-event-when-public-link-is-reached-is-downloaded</link>
<description>&lt;p&gt;Hello, &lt;/p&gt;

&lt;p&gt;Let's imagine I create a document and I attach a file to it.&lt;/p&gt;

&lt;p&gt;Then, I generate a &quot;public link&quot; for the document and another &quot;public link&quot; to a file.&lt;/p&gt;

&lt;p&gt;I would like to generate new actions (sending a mail, creating an opportunity, generate actions, ... whatever !) :&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;When someone consult the document&lt;/li&gt;
&lt;li&gt;When someone download one of the file of the document&lt;/li&gt;
&lt;li&gt;When someone download directly the document (with the second link)&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Each of theses &quot;actions after&quot; are different. How could I catch the event in a workflow ? In the database where is the information stored ? &lt;/p&gt;

&lt;p&gt;Regards, &lt;/p&gt;

&lt;p&gt;Loïc&lt;/p&gt;
</description>
<category>Efficy/ Client side</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=4236/workflow-event-when-public-link-is-reached-is-downloaded</guid>
<pubDate>Tue, 14 May 2019 21:55:38 +0000</pubDate>
</item>
<item>
<title>Collect URL's of all shared document, linked to a contact</title>
<link>https://overflow.efficy.io/?qa=3886/collect-urls-of-all-shared-document-linked-to-a-contact</link>
<description>&lt;p&gt;Hi all,&lt;/p&gt;

&lt;p&gt;For a customer we have made a connection between Efficy and their portal, using a webservice. We want to be able to show all shared documents (public links), linked to this contact.&lt;/p&gt;

&lt;p&gt;My question: Can we collect the URL's of all shared documents linked to a contact ?&lt;br&gt;
And all URL's of all shared single files within documents linked to the contact ?&lt;/p&gt;
</description>
<category>Efficy/ Client side</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=3886/collect-urls-of-all-shared-document-linked-to-a-contact</guid>
<pubDate>Fri, 25 Jan 2019 13:37:51 +0000</pubDate>
</item>
<item>
<title>How to make a pubic shared file readable by the browser</title>
<link>https://overflow.efficy.io/?qa=3879/how-to-make-a-pubic-shared-file-readable-by-the-browser</link>
<description>&lt;p&gt;Hello Team, &lt;/p&gt;

&lt;p&gt;I would like to extend a functionality of the file sharing.&lt;/p&gt;

&lt;p&gt;In the extranet of a customer, we have 4 images. In the CRM, those 4 images are a files (attachement of a document). &lt;/p&gt;

&lt;p&gt;Previously, when this files were committed, it created a new file on the server, as real image. This solution is not longer possible due to the new policies of the Cloud Team (it is not allowed anymore of write something in the server). Wich I can totally understand.&lt;/p&gt;

&lt;p&gt;After discussion with the cloud team, they advice me to create a public sharing link of the file. We store the link in the sys_storages.&lt;/p&gt;

&lt;p&gt;This part work greate. We can update the image, then a new public link is generated. &lt;/p&gt;

&lt;p&gt;But as result, the image is not showed. &lt;/p&gt;

&lt;p&gt;We can see in the HTML : &lt;/p&gt;

&lt;pre&gt;&lt;code&gt;&amp;lt;img scr=&quot;https://files.efficy.com/file/download?p=6S4WVsBrGRC1NcW3D8acrlt%2FIxTP8ngRojoViM6nVkoJRyCRHRokoAgpzdJ9kJqGlmiKOYu9a1UJ3LkMi6NtliTwYxkoloPyoluUHT%2BxAFcOo%2FuIoqfPNpeK4wRLyWvoYIU%2FJ6put98H5kzKCkITkg%3D%3D&quot;&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;This is the correct link. But the browser don't try to show the image. If you click on the link, it download the image. &lt;/p&gt;

&lt;p&gt;What is strange : I used the same &quot;hack&quot; to send an email with an image. This work perfectly.&lt;/p&gt;

&lt;p&gt;Can't we make the image showed ? If this work, the possibilities of customisation would be really amazing :) &lt;/p&gt;

&lt;p&gt;Thanks in advance for your help, &lt;/p&gt;

&lt;p&gt;Loïc&lt;/p&gt;
</description>
<category>Efficy/ Client side</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=3879/how-to-make-a-pubic-shared-file-readable-by-the-browser</guid>
<pubDate>Thu, 24 Jan 2019 07:23:15 +0000</pubDate>
</item>
</channel>
</rss>