I have a CGI script for anonymous upload of MP3 files via a web page form to my own private NetBSD Unix running Apache.

When I upload via Firefox on a Unix box to the server all is well. The uploaded MP3 plays from the web page from Firefox on Unix as well as from either Firefox or MSIE on Vista.

When I upload via either Firefox or MSIE from Vista then the the MP3 on the Unix box does not play right. The file size is exactly right but playback is chirpy and awful sounding.

It never happens when I transfer back and forth using FTP, only via the CGI upload script written in Perl. Again, the same web page and same script work differently uploading from Vista versus NetBSD.

So I am wondering if this is an Endian-ness issue to do with Vista verus NetBSD? If so I suppose I can look into querying the CGI for the OS and re-endian-izing uploaded files. Or does anyone have a better way?

FYI: The upload needs to be anonymous. The uploaded files will be more-or-less temporary. The idea is to let me be a very lazy DJ in Second Life. Rather than work hard to search Limewire for people's requests, I want for them to send me songs from their own collection. I'll then play their request in-world for that event.


In reply to CGI Upload and MP3 Endianness on Unix versus Win32 by aplonis

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.