Welcome, Guest
Username Password: Remember me

Media filename parsing removes ':' and '/'
(1 viewing) (1) Guest

TOPIC: Media filename parsing removes ':' and '/'

Media filename parsing removes ':' and '/' 02 Oct 2009 01:58 #1092

  • Jon
  • OFFLINE
  • Fresh Boarder
  • Posts: 10
When entering the mediafile filename I usually give the direct path to the file and leave server/folder entries empty as I store files on a remote server and the path is different for each file.

Currently the parsing of the filename field removes the ':' and '/' characters...

server/path/file.mp3

-->

http___server_path_file.mp3

Re:Media filename parsing removes ':' and '/' 02 Oct 2009 07:51 #1094

  • Tom
  • OFFLINE
  • Administrator
  • Posts: 860
I know why that happens. I created a system to remove bad characters from filenames. I'll take those characters off of the list.

Just wondering - I too use remote servers - several of them in fact. That's why I like the server/folder/file configuration. I choose from several servers in the server drop down, then have added the folders to the folder list. It saves me making typing errors!

replace the attached file (after renaming to .php of course) /administrator/components/com_biblestudy/models/mediafilesedit.php

Tom

Attachment mediafilesedit.txt not found

Attachments:
"You shall know the truth and the truth shall set you free." JC

Re:Media filename parsing removes ':' and '/' 03 Oct 2009 00:13 #1098

  • Jon
  • OFFLINE
  • Fresh Boarder
  • Posts: 10
Excellent

I think the server/folder/file option will work better for most people. I use ourmedia.org/archive.org to host video files since it's free, they don't downscale the video or add logos or advertising and they let you access the files directly rather than via an embed script. Anyway, it automatically generates a unique folder structure based on the 'author' and title and its easier just to paste that into the filename field...

Thanks,
Jon

Re:Media filename parsing removes ':' and '/' 03 Oct 2009 07:24 #1099

  • Tom
  • OFFLINE
  • Administrator
  • Posts: 860
The sounds like a really interesting service. Is it really www.ourmedia.org? I couldn't get that page to load
"You shall know the truth and the truth shall set you free." JC

Re:Media filename parsing removes ':' and '/' 03 Oct 2009 19:34 #1100

  • Jon
  • OFFLINE
  • Fresh Boarder
  • Posts: 10
Yeah... I noticed that when I was writing that post; I think their name server was malfunctioning, it's up again now.... There's a few steps in getting it going - an account with Ourmedia, an account with the Internet Archive (archive.org), and then you can use thier web-based tools or install SpinXpress, a program to upload files to their server for you. Once it's setup it's very easy to use. The only 'catch' I guess, is that you have to be willing to use some form of Creative Commons licence for your media, which for a church shouldn't be a problem

Have a look here for an example for what you end up with - it gives you a direct link to any media you uploaded to link to form your site (plus derivations it produces automatically)

www.archive.org/details/RoryShinerThePoweroftheGospel/

Re:Media filename parsing removes ':' and '/' 12 Oct 2009 14:00 #1131

Hi Tom,

Are you removing the check for bad characters from the URL portion or from the filename portion? This check needs to remain in place to accomodate those people who don't know that filenames on the web cannot have slashes and colons. From the URL / server portion, that is fine to remove it, there should be no check for bad characters there.
Time to create page: 0.67 seconds