<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="https://www.webmaster-forums.net/crss/node/1041375" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title></title>
    <link>https://www.webmaster-forums.net/crss/node/1041375</link>
    <description></description>
    <language>en</language>
          <item>
    <title>Yeah, in fact this is all a</title>
    <link>https://www.webmaster-forums.net/web-programming-and-application-development/false-mime-types#comment-1231114</link>
    <description> &lt;p&gt;Yeah, in fact this is all a bit of overkill since I&#039;m not actually going to be putting the upload script to work publicly.  I was just trying to write my own script and trying to figure out all of the security issues I could find.  This one probably isn&#039;t too big of a problem either considering that even for an image upload script or something similar, a low file size restriction could be used.&lt;/p&gt;
 </description>
     <pubDate>Sat, 28 Jun 2008 04:46:23 +0000</pubDate>
 <dc:creator>mscreashuns</dc:creator>
 <guid isPermaLink="false">comment 1231114 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title>I wouldn&#039;t trust the mime</title>
    <link>https://www.webmaster-forums.net/web-programming-and-application-development/false-mime-types#comment-1231113</link>
    <description> &lt;p&gt;I wouldn&#039;t trust the mime type, but then again, it&#039;s probably not anything to be concerned about.  Just make sure that the directory you upload it to isn&#039;t executable.&lt;/p&gt;
&lt;p&gt;If you want to verify it&#039;s a certain media type, you can try to edit it accordingly.  For example, load images into a PHP image object.  If it fails, it&#039;s not a valid image.  You can also try to re-render video &amp;amp; audio using something like ffmpeg.  If it fails to render based on the mime type, then it isn&#039;t valid.  This is probably overkill though.&lt;/p&gt;
 </description>
     <pubDate>Sat, 28 Jun 2008 03:35:58 +0000</pubDate>
 <dc:creator>pr0gr4mm3r</dc:creator>
 <guid isPermaLink="false">comment 1231113 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title>I was really just wondering</title>
    <link>https://www.webmaster-forums.net/web-programming-and-application-development/false-mime-types#comment-1231112</link>
    <description> &lt;p&gt;I was really just wondering for a general file upload script, meaning images, audio, video, etc.  I&#039;m wondering if there is a way for any type of file to tell what the true MIME type is, because according to &lt;a href=&quot;http://www.addict3d.org/news/1075/.html&quot;&gt;this website&lt;/a&gt; you can create a program to fake a MIME type.&lt;/p&gt;
&lt;p&gt;Glad to see my work used for something positive...lol. &lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/wink.png&quot; title=&quot;Wink&quot; alt=&quot;Wink&quot; class=&quot;smiley-content&quot; /&gt;&lt;/p&gt;
 </description>
     <pubDate>Sat, 28 Jun 2008 02:50:04 +0000</pubDate>
 <dc:creator>mscreashuns</dc:creator>
 <guid isPermaLink="false">comment 1231112 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title>Are you making an image</title>
    <link>https://www.webmaster-forums.net/web-programming-and-application-development/false-mime-types#comment-1231110</link>
    <description> &lt;p&gt;Are you making an &lt;em&gt;image&lt;/em&gt; upload form? I started &lt;a href=&quot;http://www.webmaster-forums.net/web-programming-and-application-development/image-upload-code&quot;&gt;a thread&lt;/a&gt; about that a few weeks ago.&lt;/p&gt;
&lt;p&gt;Here&#039;s the PHP class I ended up creating, you might find it useful: &lt;a href=&quot;http://satchamo.com/image-upload.txt&quot;&gt;Link to File&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Hey, I just remembered, you helped me the &lt;a href=&quot;http://www.webmaster-forums.net/web-programming-and-application-development/aspect-ratio-logic&quot;&gt;aspect ratio logic&lt;/a&gt;. See, I had a good use for it &lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/smile.png&quot; title=&quot;Smiling&quot; alt=&quot;Smiling&quot; class=&quot;smiley-content&quot; /&gt;&lt;/p&gt;
 </description>
     <pubDate>Sat, 28 Jun 2008 01:38:00 +0000</pubDate>
 <dc:creator>teammatt3</dc:creator>
 <guid isPermaLink="false">comment 1231110 at https://www.webmaster-forums.net</guid>
  </item>
  </channel>
</rss>
