<?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: element_7-22-Sunset.jpg</title>
<link>https://www.machform.com/forums/</link>
<description>MachForm Community Forums Topic: element_7-22-Sunset.jpg</description>
<language>en</language>
<pubDate>Sun, 07 Jun 2026 04:45:55 +0000</pubDate>

<item>
<title>tomsen on "element_7-22-Sunset.jpg"</title>
<link>https://www.machform.com/forums/topic/element_7-22-sunsetjpg#post-1311</link>
<pubDate>Sun, 06 Apr 2008 03:08:59 +0000</pubDate>
<dc:creator>tomsen</dc:creator>
<guid isPermaLink="false">1311@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;ok Yuniar&#60;/p&#62;
&#60;p&#62;you are a Genus I love this product and I will be using this program for all me future clients
&#60;/p&#62;</description>
</item>
<item>
<title>yuniar on "element_7-22-Sunset.jpg"</title>
<link>https://www.machform.com/forums/topic/element_7-22-sunsetjpg#post-1310</link>
<pubDate>Sat, 05 Apr 2008 22:48:47 +0000</pubDate>
<dc:creator>yuniar</dc:creator>
<guid isPermaLink="false">1310@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Ok, If you are fine with the above potential problem and really need it. You will need to modify two files.&#60;/p&#62;
&#60;p&#62;1) includes/post-functions.php&#60;/p&#62;
&#60;p&#62;search around line 876-881, you'll find this code:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;//move file and check for invalid file
$destination_file = DATA_DIR.&#38;quot;/form_{$form_id}/files/{$element_name}-{$record_insert_id}-{$_FILES[$element_name][&#38;#39;name&#38;#39;]}&#38;quot;;
if (move_uploaded_file($_FILES[$element_name][&#38;#39;tmp_name&#38;#39;], $destination_file)) {
	$query = &#38;quot;update ap_form_{$form_id} set $element_name=&#38;#39;{$element_name}-{$record_insert_id}-{$_FILES[$element_name][&#38;#39;name&#38;#39;]}&#38;#39; where id=&#38;#39;$record_insert_id&#38;#39;&#38;quot;;
	do_query($query);
}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;&#60;code&#62;&#60;/code&#62;&#60;br /&#62;
replace it with this one:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;//move file and check for invalid file
$destination_file = DATA_DIR.&#38;quot;/form_{$form_id}/files/{$_FILES[$element_name][&#38;#39;name&#38;#39;]}&#38;quot;;
if (move_uploaded_file($_FILES[$element_name][&#38;#39;tmp_name&#38;#39;], $destination_file)) {
	$query = &#38;quot;update ap_form_{$form_id} set $element_name=&#38;#39;{$_FILES[$element_name][&#38;#39;name&#38;#39;]}&#38;#39; where id=&#38;#39;$record_insert_id&#38;#39;&#38;quot;;
	do_query($query);
}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;&#60;code&#62;&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;2) download.php&#60;/p&#62;
&#60;p&#62;search around line 32 - 34 for this code:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;//remove the element_x-xx- suffix we added to all uploaded files
$file_1 	   =  substr($filename_only,strpos($filename_only,&#38;#39;-&#38;#39;)+1);
$filename_only = substr($file_1,strpos($file_1,&#38;#39;-&#38;#39;)+1);&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;&#60;code&#62;&#60;/code&#62;&#60;br /&#62;
remove the code above.&#60;/p&#62;
&#60;p&#62;That should do it.
&#60;/p&#62;</description>
</item>
<item>
<title>tomsen on "element_7-22-Sunset.jpg"</title>
<link>https://www.machform.com/forums/topic/element_7-22-sunsetjpg#post-1309</link>
<pubDate>Sat, 05 Apr 2008 20:34:43 +0000</pubDate>
<dc:creator>tomsen</dc:creator>
<guid isPermaLink="false">1309@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;I understand that theory&#60;br /&#62;
but i absolutely need to get rid of the prefix&#60;br /&#62;
in whit’s file is the code for the upload function cant the prefix element be excluded
&#60;/p&#62;</description>
</item>
<item>
<title>yuniar on "element_7-22-Sunset.jpg"</title>
<link>https://www.machform.com/forums/topic/element_7-22-sunsetjpg#post-1308</link>
<pubDate>Sat, 05 Apr 2008 17:20:36 +0000</pubDate>
<dc:creator>yuniar</dc:creator>
<guid isPermaLink="false">1308@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;It can't be removed.&#60;br /&#62;
MachForm needs it to prevent your users overwriting the same file name.&#60;/p&#62;
&#60;p&#62;So if user A uploads Sunset.jpg and user B uploads another file with the same name Sunset.jpg, it won't overwrite the other file.&#60;/p&#62;
&#60;p&#62;However, those prefix are automatically removed when you download those files.
&#60;/p&#62;</description>
</item>
<item>
<title>tomsen on "element_7-22-Sunset.jpg"</title>
<link>https://www.machform.com/forums/topic/element_7-22-sunsetjpg#post-1307</link>
<pubDate>Sat, 05 Apr 2008 16:56:04 +0000</pubDate>
<dc:creator>tomsen</dc:creator>
<guid isPermaLink="false">1307@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Hi&#60;/p&#62;
&#60;p&#62;how can i get rid of the element_7-22- counter wen a user uplods a file
&#60;/p&#62;</description>
</item>

</channel>
</rss>
