Not the answer you need?
Register and ask your own question!
Many Forum changes were implemented on Tue 22 Sep. Read about new Ranks, Scoring, and Reactions.
Email [email protected] for any comments or concerns.

Change mysql extensions

carefreecarefree EntrantInactive User Role Beginner
I want to allow people to download videos off my site.

But the uploaded extensions all end in .mpg .avi etc

Basically want to still get the video name - {$answers.videoname}, but change the last extension from whatever to .zip.

Can this be done ??

Comments

  • allworknoplayallworknoplay Contributor Inactive User Role Beginner
    What does this have to do with mysql?
  • carefreecarefree Entrant Inactive User Role Beginner
    Because the information is within mysql tables
  • allworknoplayallworknoplay Contributor Inactive User Role Beginner
    <table border="0" align="center" width="90%" cellpadding="3" cellspacing="1"><tr><td class="SmallText">carefree wrote on Sat, 22 September 2007 09:28</td></tr><tr><td class="quote">
    Because the information is within mysql tables
    </td></tr></table>

    You can just change the output to the end user dynamically, or change the extension before it goes into mysql...

    .mpeg = .whatever to end user
    then as they try to download it
    your front end script changes it
    back to .whatever to .mpeg
Sign In or Register to comment.

MySQL, InnoDB, MariaDB and MongoDB are trademarks of their respective owners.
Copyright ©2005 - 2020 Percona LLC. All rights reserved.