file name for downloading music.

gordon - June 13, 2006 - 05:09
Project:Audio
Version:5.x-1.x-dev
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed
Description

When ever downloading music it is always called file.mp3 instead of the actual, or an unique name.

This then causes a problem with some podcast software which will download 1 file, and then overwrite it with the next.

#1

drewish - June 13, 2006 - 05:30

it really sounds like a bug in the software you're using to download the audio. the audio module sends out the proper headers specifying a filename.

#2

halkeye - June 25, 2006 - 17:27

Honestly there is no reason that it should be hard coded to file.ext
Quick patch adds the filename to the end of the download link.

will make it able to work with wget now.

AttachmentSize
drupal.audio.filename.patch 952 bytes

#3

drewish - June 25, 2006 - 22:10

if you're going to use a file name you should use the "original" one stored in the database.

#4

halkeye - June 25, 2006 - 22:44

yea, what is the difference? as far as i can tell, they are the same.

#5

drewish - June 26, 2006 - 16:39

it preserves the original name. if you upload two copies of the same file on will end up with _0.mp3 on the end. this also happens if you use revisions on an audio node.

#6

drewish - July 13, 2006 - 19:38
Status:active» needs review

could i get a review of this?

AttachmentSize
audio.module_68716_filename.patch 1.08 KB

#7

Colin Brumelle - July 13, 2006 - 21:48

This patch worked for me, although I didn't have a problem with file names in the first place!

#8

drewish - August 6, 2006 - 21:11
Status:needs review» fixed

this was applied at some point in the past.

#9

Anonymous - August 20, 2006 - 21:16
Status:fixed» closed
 
 

Drupal is a registered trademark of Dries Buytaert.