<?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 Re: Images collected by form convert to public url to show in page in CMS Development</title>
    <link>https://community.hubspot.com/t5/CMS-Development/Images-collected-by-form-convert-to-public-url-to-show-in-page/m-p/972669#M38942</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/583645"&gt;@KSmithIllumine8&lt;/a&gt;, We soved this issue with alternative way. I hope that this help you.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Summary&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;Me and my team tried to explore many ways to address this issue, keeping in mind that Hubspot for security covers all sent multimedia content with an authentication layer. This poses a problem when we want to expose multimedia publicly. Here we found a way to solve this, but this solution implies certain conditions:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;(Serverless code requiring Content Hub - Enterprise).&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;Manipulation onSubmitForm.&lt;/SPAN&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt;Implemented solution&lt;/STRONG&gt;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;We created an API connection to upload files to (File Manager - Hubspot Account) in parallel for each submit. All this media uploaded via API and tagged as public, then we save that public URL in a cloned property for later consumption.&lt;/LI&gt;
&lt;/UL&gt;</description>
    <pubDate>Tue, 07 May 2024 14:07:02 GMT</pubDate>
    <dc:creator>CristianSabogal</dc:creator>
    <dc:date>2024-05-07T14:07:02Z</dc:date>
    <item>
      <title>Images collected by form convert to public url to show in page</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Images-collected-by-form-convert-to-public-url-to-show-in-page/m-p/711749#M31086</link>
      <description>&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;I've a problem in this moment with the visualization of my project images. I explain the details the issue.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Work context:&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;We created a custom object with several types of properties, between them (image_proyect). From those properties we created forms to catch specific information.&lt;/LI&gt;&lt;LI&gt;All forms were inject in pages with (Private - Registration) active. Therefore they are protectet by login.&lt;/LI&gt;&lt;LI&gt;We created some kind of frontend to show the information collected in form of&amp;nbsp;pages listing cards and detail for each card.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;Issue/Problem:&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;We detect that the moment to see the cards in the listing the images don't loading properly, because when that images be storage in the system by default HubSpot assign a Private Url to each one. In consecuense the users cannot see them.&lt;/LI&gt;&lt;LI&gt;Note: The images loading fine when I'm logged as administrator but &lt;STRONG&gt;our customers are the ones who finally need to see them&lt;/STRONG&gt;.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;Question:&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;STRONG&gt;How can I do to&amp;nbsp;automatically define that all images collected by forms stored with Public Url and that url stored in the corresponding property of the custom object?&lt;/STRONG&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;I wait for you advise.&lt;/P&gt;</description>
      <pubDate>Fri, 28 Oct 2022 17:10:29 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Images-collected-by-form-convert-to-public-url-to-show-in-page/m-p/711749#M31086</guid>
      <dc:creator>CristianSabogal</dc:creator>
      <dc:date>2022-10-28T17:10:29Z</dc:date>
    </item>
    <item>
      <title>Re: Images collected by form convert to public url to show in page</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Images-collected-by-form-convert-to-public-url-to-show-in-page/m-p/712373#M31096</link>
      <description>&lt;P&gt;Hey,&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/388575"&gt;@CristianSabogal&lt;/a&gt;,&amp;nbsp;Thanks for reaching out. Let's see if we can get the conversation started.&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/17186"&gt;@Anton&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/166093"&gt;@miljkovicmisa&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/103660"&gt;@piersg&lt;/a&gt;, do&amp;nbsp;you have any thoughts on workarounds or other opinions on dealing with the default behaviour &lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/388575"&gt;@CristianSabogal&lt;/a&gt;&amp;nbsp;is describing?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you very much!&amp;nbsp; — Jaycee&lt;/P&gt;</description>
      <pubDate>Mon, 31 Oct 2022 15:39:39 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Images-collected-by-form-convert-to-public-url-to-show-in-page/m-p/712373#M31096</guid>
      <dc:creator>Jaycee_Lewis</dc:creator>
      <dc:date>2022-10-31T15:39:39Z</dc:date>
    </item>
    <item>
      <title>Re: Images collected by form convert to public url to show in page</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Images-collected-by-form-convert-to-public-url-to-show-in-page/m-p/712379#M31097</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/388575"&gt;@CristianSabogal&lt;/a&gt;,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;could you please share some code of the displaying module?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also I think the best way to go with a custom module and a &lt;A href="https://legacydocs.hubspot.com/docs/methods/forms/advanced_form_options" target="_blank" rel="noopener"&gt;modified form embed code&lt;/A&gt;. So everytime somebody uploads an image it will be uploaded directly to the file-manager into a specific folder like "uploaded-images".&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Could think of something like this&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;&amp;lt;script charset="utf-8" type="text/javascript" src="//js.hsforms.net/forms/embed/v2.js"&amp;gt;&amp;lt;/script&amp;gt;
&amp;lt;script&amp;gt;
  hbspt.forms.create({
    region: "na1",
    portalId: "{{ hub_id }}",
    formId: "{{ module.form.form_id }}",
onFormSubmitted: {
{# trigger the files API here #}
}
  });
&amp;lt;/script&amp;gt;&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://developers.hubspot.com/docs/api/files/files" target="_blank" rel="noopener"&gt;files API documentation&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;After the upload you could show all images like this&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;&amp;lt;img src="YOUR-DOMAIN/uploaded-images/some-name.png"&amp;gt;&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Or you could even completly overengineer it by putting everything into the file-manager, grab the URL and place it into a HubDB(if you have it) as a row. Then you could write a second module or template to display the HubDB rows like this&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;{# just a schematical idea - not a real HubDB code #}
{% for entry in hubDB_row %}
&amp;lt;img src="{{ event.image_url }}" alt="{{ event.name }}"&amp;gt;
{% endfor %}&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;best,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Anton&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 31 Oct 2022 15:53:28 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Images-collected-by-form-convert-to-public-url-to-show-in-page/m-p/712379#M31097</guid>
      <dc:creator>Anton</dc:creator>
      <dc:date>2022-10-31T15:53:28Z</dc:date>
    </item>
    <item>
      <title>Re: Images collected by form convert to public url to show in page</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Images-collected-by-form-convert-to-public-url-to-show-in-page/m-p/713051#M31116</link>
      <description>&lt;P&gt;Hi Anton,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here the code and some screenshots of problem:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Code listing Projects:&lt;/STRONG&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;{# Get projets #}
{% set projects = crm_objects("proyecto", "limit=100&amp;amp;order=-hs_createdate"+query, "hs_object_id,hs_pipeline_stage,project_name,hs_pipeline,departamento__ubicacion_,departamento__ubicacion_,valor_de_los_aportes_objeto_del_beneficio_tributario____,departamento__1_,departamento__2_,imagen_del_proyecto, modalidad_de_participacion") %}

{# LOOP PROYECTOS - CARDS #}
{% for project in projects.results %} 
    &amp;lt;div class="col-12 col-lg-3 col-sm-12"&amp;gt;
        &amp;lt;div class="project-card"&amp;gt;
            &amp;lt;a href="{{ request.path }}/{{ project.hs_object_id }}"&amp;gt;
                &amp;lt;div class="image-card"&amp;gt;
                {# Validate if the project does not have an image and we set a default #}
                {% if not project.imagen_del_proyecto or ".pdf" in project.imagen_del_proyecto %}
                    &amp;lt;img src="https://8431354.fs1.hubspotusercontent-na1.net/hubfs/8431354/default%20Images/default-photo-project.png" alt="Default-image"&amp;gt;
                {# Otherwise we put uploaded image #}
                {% else %}  
                    &amp;lt;img src="{{project.imagen_del_proyecto}}" &amp;gt;
                {% endif %} 

                {# STATE LABEL #}
                {# ... More code ...#}
            &amp;lt;/a&amp;gt;
            &amp;lt;/div&amp;gt;
    &amp;lt;/div&amp;gt;    
{% endfor %}&lt;/LI-CODE&gt;&lt;P&gt;This is the code that we use to iterate projects.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;How does it show on screen:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="CristianSabogal_0-1667346573565.png" style="width: 400px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/78221i895B6608546A4592/image-size/medium?v=v2&amp;amp;px=400" role="button" title="CristianSabogal_0-1667346573565.png" alt="CristianSabogal_0-1667346573565.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;- Don't show the images, now inspect element.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="CristianSabogal_1-1667346703036.png" style="width: 400px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/78222i39E43C24B331DD65/image-size/medium?v=v2&amp;amp;px=400" role="button" title="CristianSabogal_1-1667346703036.png" alt="CristianSabogal_1-1667346703036.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;- Let's see this url&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="CristianSabogal_2-1667346784885.png" style="width: 400px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/78223iAABC6A9F3AE67762/image-size/medium?v=v2&amp;amp;px=400" role="button" title="CristianSabogal_2-1667346784885.png" alt="CristianSabogal_2-1667346784885.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;- Apply redirection url to login.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;How does It stored in HubSpot:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="CristianSabogal_4-1667347038463.png" style="width: 400px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/78225iCFE749254F4BECC1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="CristianSabogal_4-1667347038463.png" alt="CristianSabogal_4-1667347038463.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;- By default is stored as &lt;STRONG&gt;"Private&lt;/STRONG&gt;". &lt;STRONG&gt;This is the reason because apply the redirection show above.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="CristianSabogal_5-1667347210125.png" style="width: 400px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/78226i38C1C81C43A7DC72/image-size/medium?v=v2&amp;amp;px=400" role="button" title="CristianSabogal_5-1667347210125.png" alt="CristianSabogal_5-1667347210125.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;- Each image is collected by property "imagen_del_proyecto" &lt;STRONG&gt;(Custom Object's property)&lt;/STRONG&gt; in &lt;STRONG&gt;HubSpot form.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;I hope that this details provide more context to you. Thanks.&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Nov 2022 00:05:21 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Images-collected-by-form-convert-to-public-url-to-show-in-page/m-p/713051#M31116</guid>
      <dc:creator>CristianSabogal</dc:creator>
      <dc:date>2022-11-02T00:05:21Z</dc:date>
    </item>
    <item>
      <title>Re: Images collected by form convert to public url to show in page</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Images-collected-by-form-convert-to-public-url-to-show-in-page/m-p/719708#M31424</link>
      <description>&lt;P&gt;Hi again, some ideas to solve this.&lt;/P&gt;</description>
      <pubDate>Thu, 17 Nov 2022 12:51:52 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Images-collected-by-form-convert-to-public-url-to-show-in-page/m-p/719708#M31424</guid>
      <dc:creator>CristianSabogal</dc:creator>
      <dc:date>2022-11-17T12:51:52Z</dc:date>
    </item>
    <item>
      <title>Re: Images collected by form convert to public url to show in page</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Images-collected-by-form-convert-to-public-url-to-show-in-page/m-p/723177#M31602</link>
      <description>&lt;P&gt;Any solution on this issue?&lt;/P&gt;</description>
      <pubDate>Fri, 25 Nov 2022 16:54:57 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Images-collected-by-form-convert-to-public-url-to-show-in-page/m-p/723177#M31602</guid>
      <dc:creator>MichaelGabu</dc:creator>
      <dc:date>2022-11-25T16:54:57Z</dc:date>
    </item>
    <item>
      <title>Re: Images collected by form convert to public url to show in page</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Images-collected-by-form-convert-to-public-url-to-show-in-page/m-p/972158#M38928</link>
      <description>&lt;P&gt;Replying for visibility as I'm also running into the same issue.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to display images uploaded via a form on a separate webpage, using the Forms API to pull the response data and then applying the image url's to html img tags, but you can only see the images if you are logged in as a HubSpot user for the account.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to figure out a way to convert the provided url (&lt;A href="https://api-na1.hubspot.com/form-integrations/v1/uploaded-files/signed-url-redirect/.....)" target="_blank" rel="noopener"&gt;https://api-na1.hubspot.com/form-integrations/v1/uploaded-files/signed-url-redirect/.....)&lt;/A&gt;&amp;nbsp;into a publicly-visible version, or somehow set the form to make the uploaded images publicly-visible, or maybe some other solution.&lt;/P&gt;</description>
      <pubDate>Mon, 06 May 2024 20:16:58 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Images-collected-by-form-convert-to-public-url-to-show-in-page/m-p/972158#M38928</guid>
      <dc:creator>KSmithIllumine8</dc:creator>
      <dc:date>2024-05-06T20:16:58Z</dc:date>
    </item>
    <item>
      <title>Re: Images collected by form convert to public url to show in page</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Images-collected-by-form-convert-to-public-url-to-show-in-page/m-p/972669#M38942</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/583645"&gt;@KSmithIllumine8&lt;/a&gt;, We soved this issue with alternative way. I hope that this help you.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Summary&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;Me and my team tried to explore many ways to address this issue, keeping in mind that Hubspot for security covers all sent multimedia content with an authentication layer. This poses a problem when we want to expose multimedia publicly. Here we found a way to solve this, but this solution implies certain conditions:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;(Serverless code requiring Content Hub - Enterprise).&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;Manipulation onSubmitForm.&lt;/SPAN&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt;Implemented solution&lt;/STRONG&gt;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;We created an API connection to upload files to (File Manager - Hubspot Account) in parallel for each submit. All this media uploaded via API and tagged as public, then we save that public URL in a cloned property for later consumption.&lt;/LI&gt;
&lt;/UL&gt;</description>
      <pubDate>Tue, 07 May 2024 14:07:02 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Images-collected-by-form-convert-to-public-url-to-show-in-page/m-p/972669#M38942</guid>
      <dc:creator>CristianSabogal</dc:creator>
      <dc:date>2024-05-07T14:07:02Z</dc:date>
    </item>
    <item>
      <title>Re: Images collected by form convert to public url to show in page</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Images-collected-by-form-convert-to-public-url-to-show-in-page/m-p/972934#M38950</link>
      <description>&lt;P&gt;Thanks for the reply&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/388575"&gt;@CristianSabogal&lt;/a&gt;&amp;nbsp;! That's what I'm attempting to do now. I just need to figure out how to properly authenticate my call to upload the images and it should be good.&lt;/P&gt;</description>
      <pubDate>Tue, 07 May 2024 22:11:56 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Images-collected-by-form-convert-to-public-url-to-show-in-page/m-p/972934#M38950</guid>
      <dc:creator>KSmithIllumine8</dc:creator>
      <dc:date>2024-05-07T22:11:56Z</dc:date>
    </item>
  </channel>
</rss>

