<?xml version="1.0"?><!-- generator="bbPress" -->

<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
>

<channel>
<title>MachForm Community Forums Topic: Displaying images on review page and limiiting file uploads</title>
<link>https://www.machform.com/forums/</link>
<description>MachForm Community Forums Topic: Displaying images on review page and limiiting file uploads</description>
<language>en</language>
<pubDate>Tue, 05 May 2026 12:06:43 +0000</pubDate>

<item>
<title>redityo on "Displaying images on review page and limiiting file uploads"</title>
<link>https://www.machform.com/forums/topic/displaying-images-on-review-page-and-limiiting-file-uploads#post-9842</link>
<pubDate>Fri, 02 Jul 2010 15:09:19 +0000</pubDate>
<dc:creator>redityo</dc:creator>
<guid isPermaLink="false">9842@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;It's possible to show uploaded file in review page and create a limitation for the file size. You need to customize some files for this, for showing the image on review page, you can follow to these steps :&#60;/p&#62;
&#60;p&#62;1.  Edit &#34;includes/entry-functions.php&#34; file and go to around line 383, you'll see these code :&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;$file_1 	    =  substr($filename_value,strpos($filename_value,&#38;#39;-&#38;#39;)+1);&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;then put this code exactly above that line &#60;/p&#62;
&#60;pre&#62;&#60;code&#62;$filename_basic = $filename_value ;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;2. Go to around line 406 ~ 408 for these code :&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;if(!empty($options[&#38;#39;show_attach_image&#38;#39;])){
	$entry_details[$i][&#38;#39;value&#38;#39;] = &#38;#39;&#38;lt;img src=&#38;quot;&#38;#39;.$options[&#38;#39;machform_path&#38;#39;].&#38;#39;images/icons/attach.gif&#38;quot; align=&#38;quot;absmiddle&#38;quot; /&#38;gt;&#38;amp;nbsp;&#38;#39;.$filename_value;
}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;then put these code exactly bellow that code&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;if(!empty($options[&#38;#39;show_image_directly&#38;#39;])){
	$entry_details[$i][&#38;#39;value&#38;#39;] = &#38;#39;&#38;lt;img width=&#38;quot;200px&#38;quot; height=&#38;quot;200px&#38;quot; src=&#38;quot;http&#38;#39;.$ssl_suffix.&#38;#39;://&#38;#39;. $_SERVER[&#38;#39;HTTP_HOST&#38;#39;] .dirname($_SERVER[&#38;#39;PHP_SELF&#38;#39;]) .  &#38;#39;/data/form_&#38;#39; . $form_id . &#38;#39;/files/&#38;#39;.  $filename_basic  . &#38;#39;.tmp&#38;quot; /&#38;gt; &#38;#39;;
}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;3. Edit &#34;includes/view-functions.php&#34; file, in line 2326 you'll see this code&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;$param[&#38;#39;show_attach_image&#38;#39;]   = true;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;then put this code bellow that line &#60;/p&#62;
&#60;pre&#62;&#60;code&#62;$param[&#38;#39;show_image_directly&#38;#39;]   = true;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;And to limit upload file size, you can use the method that posted in here :&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://www.appnitro.com/forums/topic/file-size-error-message?replies=7#post-4082&#34; rel=&#34;nofollow&#34;&#62;http://www.appnitro.com/forums/topic/file-size-error-message?replies=7#post-4082&#60;/a&#62;
&#60;/p&#62;</description>
</item>
<item>
<title>takemura on "Displaying images on review page and limiiting file uploads"</title>
<link>https://www.machform.com/forums/topic/displaying-images-on-review-page-and-limiiting-file-uploads#post-9817</link>
<pubDate>Wed, 30 Jun 2010 18:34:36 +0000</pubDate>
<dc:creator>takemura</dc:creator>
<guid isPermaLink="false">9817@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;I want to use the file upload function for photos (jpegs). How can I make it so a thumbnail of the photo uploaded appears on the 'review' page?&#60;/p&#62;
&#60;p&#62;It would also be good if a thumbnail also appeared on the submission page when they go back.&#60;/p&#62;
&#60;p&#62;I would also like to know how I can limit the number of files that can be uploaded as there's no provision for this in the field properties screen.&#60;/p&#62;
&#60;p&#62;Also, I would like to limit the size of the photos uploaded. How can this be achieved?&#60;/p&#62;
&#60;p&#62;p.s. I think you should introduce categories in your forum as it would make it easier for us to find specific posts.
&#60;/p&#62;</description>
</item>

</channel>
</rss>
