<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><br></div>Hi Patrick & Michael:<div><br></div><div><span class="Apple-tab-span" style="white-space:pre">       </span>Ok, I have a bit more information about the duplicate filenames issue:</div><div><br></div><div><span class="Apple-tab-span" style="white-space:pre">      </span>1.  For the same code, it is inconsistent...sometimes it duplicate filenames and sometimes it appends the (#)...hard to debug, I know, sorry.  Attached is an image that shows both duplicate filename and files with (#) appended:</div><div><br></div><div><img height="613" width="598" apple-width="yes" apple-height="yes" id="400dcb06-96dd-499c-93d8-a3a3c4608d69" src="cid:476EFEAD-C895-41EE-9F25-55F7DD52EF25@sdsc.edu"></div><div><br></div><div><span class="Apple-tab-span" style="white-space:pre">        </span>2.  Here is the sequence of code steps:</div><div><br></div><div><span class="Apple-tab-span" style="white-space:pre">                </span>a. <a href="https://ourserver.edu/api/json?method=midas.item.create&useSession&parentid=679&name=rkd2_merged_phase001.nii.axml&privacy=Private">https://ourserver.edu/api/json?method=midas.item.create&useSession&parentid=679&name=rkd2_merged_phase001.nii.axml&privacy=Private</a></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal Helvetica; min-height: 14px; "><font class="Apple-style-span" size="3"><br></font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal Helvetica; "><font class="Apple-style-span" size="3"><span class="Apple-tab-span" style="white-space:pre">          </span>b.  https://ourserver.edu/api/json?method=midas.upload.generatetoken&useSession&itemid=62933&filename=rkd2_merged_phase001.nii.axml (20)</font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal Helvetica; min-height: 14px; "><font class="Apple-style-span" size="3"><br></font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal Helvetica; "><font class="Apple-style-span" size="3"><span class="Apple-tab-span" style="white-space:pre">             </span>c. <a href="https://ourserver.edu/api/json?method=midas.upload.perform&uploadtoken=13/62933/rkd2_merged_phase001.nii.axml">https://ourserver.edu/api/json?method=midas.upload.perform&uploadtoken=13/62933/rkd2_merged_phase001.nii.axml</a> (20)f4QDTF&filename=rkd2_merged_phase001.nii.axml (20)&length=838&folderid=null&itemid=62933</font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal Helvetica; min-height: 14px; "><font class="Apple-style-span" size="3"><br></font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal Helvetica; "><font class="Apple-style-span" size="3"><span class="Apple-tab-span" style="white-space:pre">          </span>d. <a href="https://ourserver.edu/api/json?method=midas.item.create&useSession&name=rkd2_merged_phase001.nii.axml">https://ourserver.edu/api/json?method=midas.item.create&useSession&name=rkd2_merged_phase001.nii.axml</a> (20)&uuid=5085ba73ceaab2c352eb7122e0979f664998e7e152e1d&privacy=Private&_user name=Mona Wong&_timestamp=10/22/2012 14:28&_ontology term 1=mid myocardium</font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal Helvetica; "><font class="Apple-style-span" size="3"><br></font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal Helvetica; "><font class="Apple-style-span" size="3"><span class="Apple-tab-span" style="white-space:pre">    </span>Of course, the above steps created the corrected filename (with (20) appended).  Though it is the same steps that sometimes create files with duplicate name.  If I can find a pattern that can reliably reproduce the duplicate filenames, I'll let you know.</font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal Helvetica; "><font class="Apple-style-span" size="3"><br></font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal Helvetica; "><font class="Apple-style-span" size="3">cheers,</font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal Helvetica; "><font class="Apple-style-span" size="3">Mona</font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal Helvetica; "><font class="Apple-style-span" size="3"><br></font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal Helvetica; "><font class="Apple-style-span" size="3"><br></font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal Helvetica; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal Helvetica; "><br></div><div><div><div>On Oct 22, 2012, at 7:24 AM, Michael Grauer wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">Hi Mona,<div><br></div><div>Can you describe how you are getting to this and what the exact problem would be with how your users would interact with Midas when they encounter this situation?</div><div><br></div><div>I just tested with a Midas 3.2.8 instance.  I could upload a file into a folder where an item "item1.txt" already existed with that name, using the Midas web UI uploader, and the new item was created as "item1.txt (1)".  I also tried this with the latest version of Pydas (0.2.24), and again the item name had a numeric suffix, "item1.txt (2)".  Once I had these items in the folder, I was able to change their names using the edit action on the Item so that all of the item names were the same.<br>
<br>Thanks,</div><div>Mike<br></div></blockquote></div><br><div>
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><div><div>*********************************************</div><div>    Mona Wong</div><div>    Web & iPad Application Developer</div><div>    San Diego Supercomputer Center</div><div><br></div><div>    "Forgive everyone everything."</div><div><span class="Apple-tab-span" style="white-space: pre; ">                             </span>-- Regina Brett</div><div><div><div>*********************************************</div></div><div><br></div></div></div></div></div><br class="Apple-interchange-newline"><br class="Apple-interchange-newline">
</div>
<br></div></body></html>