<?xml version="1.0" encoding="UTF-8"?>    <rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
      <channel>
        <title>Uploads issue</title>
        <link>https://interactivetools.com/forum/forum-posts.php?Uploads-issue-80899</link>
        <description></description>
        <pubDate>Tue, 14 Jul 2026 20:56:46 -0700</pubDate>
        <language>en-us</language>
        <atom:link href="https://interactivetools.com/forum/forum-posts.php?rss=1&amp;Uploads-issue-80899" rel="self" type="application/rss+xml" />

                <item>
          <title>Uploads issue</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2240403#post2240403</link>
          <description><![CDATA[<p>Hi there.</p>
<p>I see what you mean and have an idea for a solution :).</p>
<p>What I suggest is looking at this:</p>
<p><code>&lt;?php foreach ($record['upload_brochure'] as $index =&gt; $upload): ?&gt;  </code></p>
<p>and changing it to read:</p>
<p><code>&lt;?php foreach ($record['upload_brochure'] as $index =&gt; $brochureUpload): ?&gt;  </code></p>
<p>Notice that I changed "$upload" to "$brochureUpload".</p>
<p>Next, inside that "foreach" block you need to change $upload to $brochureUpload like this:</p>
<p><code>&lt;?php foreach ($record['upload_brochure'] as $index =&gt; $brochureUpload): ?&gt;     <br /> &lt;p&gt;&lt;a href="&lt;?php echo htmlencode($brochureUpload['urlPath']) ?&gt;" target="_blank"&gt;Download Brochure&lt;/a&gt; &lt;/a&gt; <br />&lt;?php endforeach ?&gt;</code></p>
<p>Does that make sense?</p>
<p>Give this a shot and let me know how you make out.</p>
<p>Thanks!</p>]]></description>
          <pubDate>Wed, 12 Apr 2017 11:08:31 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2240403#post2240403</guid>
        </item>
                <item>
          <title>Uploads issue</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2240370#post2240370</link>
          <description><![CDATA[<p>Hi all,</p>
<p>I have created a table of pdf brochures allowing the client to upload pdf's for clients to download. I have a second upload section so that they can assign an image for each pdf.</p>
<p>My problem is that the code linking to the download for the image and the download to the pdf are exactly the same. I want the image when displayed to link to the pdf download but when I insert the code as shown below it links to the actual image instead. I think can understand why which I assume is that it is currently dealing with the foreach statement dealing with the image display and hasn't got to the foreach element of the pdf upload.</p>
<p>My Question is how do I get cmsb to differentiate between the $upload['urlpath for the pdf and the $upload['urlpath for the image. As both download link codes are identical as shown below.</p>
<p>Thanks in advance for any help provided.</p>
<p><code>&lt;?php echo htmlencode($upload['urlPath']) ?&gt; For the image upload<br />&lt;?php echo htmlencode($upload['urlPath']) ?&gt; For the PDF File upload<br /></code></p>
<p><code>In my listing page I have the following code <br /><br /> &lt;?php foreach ($brochuresRecords as $record): ?&gt;<br />        &lt;div class="col-sm-3" align="center"&gt;<br />            &lt;div class="img-thumbnail-brochure"&gt;<br />            &lt;h4 style="color: #ED1C24"&gt;&lt;?php echo htmlencode($record['title']) ?&gt;&lt;/h4&gt;<br />            &lt;?php foreach ($record['image'] as $index =&gt; $upload): ?&gt;<br />         <br />                &lt;a href="&lt;?php echo htmlencode($upload['urlPath']) ?&gt;"&gt;&lt;img alt="&lt;?php echo htmlencode($record['title']) ?&gt;" class=" img-rounded img-responsive" src="&lt;?php echo htmlencode($upload['thumbUrlPath3']) ?&gt;"&gt;&lt;/a&gt;<br />                   &lt;?php endforeach ?&gt;<br />                &lt;div class="caption"&gt;<br />&lt;?php foreach ($record['upload_brochure'] as $index =&gt; $upload): ?&gt;                    <br />                  &lt;p&gt;&lt;a href="&lt;?php echo htmlencode($upload['urlPath']) ?&gt;" target="_blank"&gt;Download Brochure&lt;/a&gt; &lt;/a&gt;<br />                    &lt;?php endforeach ?&gt;<br />&lt;/p&gt;<br /><br /></code></p>
]]></description>
          <pubDate>Wed, 05 Apr 2017 08:16:01 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2240370#post2240370</guid>
        </item>
              </channel>
    </rss>
  