Jump to content

Recommended Posts

Not sure if this is the right subforum, or indeed if this has been asked before because I can't find anything relevant in search.

I'm looking to write a scrip to in effect rewrite the filename of a file upon download. The source file is in a link of type: http://somewhere.com/someoneelsesphpscript.php?id=23 which returns the file as having an htm extension, whereas I need it to arrive with an mp4 extension (the file is actually an mp4 file, just with an htm extension).

 

The situation is that the files are to be streamed into Second Life for viewing inworld. To do this, SL requires a media URL which it then resolves into a file. Upon discovering the htm extension Second Life drops into HTML viewing mode and so doesn't render the file as a video. If however the file is downloaded and re-uploaded to a server with the extension changed to mp4, it streams perfectly.

 

Sorry if this question's a bit of a mess!

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.