<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>Forem: Roberto Murran</title>
    <description>The latest articles on Forem by Roberto Murran (@roberto56).</description>
    <link>https://forem.com/roberto56</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3036748%2Faaccb75a-ca68-48cf-aa3d-d04a1b4ee76d.png</url>
      <title>Forem: Roberto Murran</title>
      <link>https://forem.com/roberto56</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://forem.com/feed/roberto56"/>
    <language>en</language>
    <item>
      <title>Multiple file uploader with progress bar</title>
      <dc:creator>Roberto Murran</dc:creator>
      <pubDate>Thu, 10 Apr 2025 06:20:56 +0000</pubDate>
      <link>https://forem.com/roberto56/multiple-file-uploader-with-progress-bar-4eik</link>
      <guid>https://forem.com/roberto56/multiple-file-uploader-with-progress-bar-4eik</guid>
      <description>&lt;p&gt;I am not that good at PHP coding. I found this uploader that works great except it saves the files with a scrambled name. I wish if someone could be able to modify it in order to save the real file names which are uploaded. Here's the code.&lt;/p&gt;

&lt;p&gt;&amp;lt;?php&lt;/p&gt;

&lt;p&gt;//upload.php&lt;/p&gt;

&lt;p&gt;if(isset($_FILES['images']))&lt;br&gt;
{&lt;br&gt;
    for($count = 0; $count &amp;lt; count($_FILES['images']['name']); $count++)&lt;br&gt;
    {&lt;br&gt;
        $extension = pathinfo($_FILES['images']['name'][$count], PATHINFO_EXTENSION);&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;    $new_name = uniqid() . '.' . $extension;
    move_uploaded_file($_FILES['images']['tmp_name'][$count], 'images/' . $new_name);
}
echo 'success';
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;}&lt;br&gt;
?&amp;gt;&lt;br&gt;
I thank you in advance. I really need help with it.&lt;/p&gt;

</description>
      <category>php</category>
      <category>development</category>
      <category>tutorial</category>
    </item>
  </channel>
</rss>
