<?xml version="1.0" encoding="windows-1252"?>
<node id="184836" title="Re: Re: uploading a file with the same name" created="2002-07-24 09:51:00" updated="2005-01-01 09:41:47">
<type id="11">
note</type>
<author id="7824">
frankus</author>
<data>
<field name="doctext">
&lt;code&gt;
$num=1;
$imagename=$imagename. ++$num while -s "$Data/$category/$imagename";
&lt;/code&gt;
Perhaps consider using an MD5 Sum to see if the files are the same too, to negate duplicate uploads ;)
&lt;p&gt;--&lt;br&gt;&lt;/br&gt;
&lt;i&gt;Brother &lt;A HREF="/index.pl?node=Frankus&amp;lastnode_id=1072"&gt;Frankus&lt;/A&gt;.&lt;/i&gt;
&lt;p align="center"&gt;&amp;#164;&lt;/p&gt;</field>
<field name="root_node">
184827</field>
<field name="parent_node">
184830</field>
</data>
</node>
