Reputation
346
Top tag
Next privilege 500 Rep.
Access review queues
Badges
1 8
Impact
~5k people reached

May
26
answered What's the best way to implement texting into my webapp?
May
26
comment What can I do if someone is spoofing my site?
I might also suggest you check on the more business oriented site (also on the StackExchange network), answers.onstartups.com
May
26
answered What hosting solutions help with traffic spikes?
May
25
awarded  Teacher
May
25
answered Should I jump straight into HTML 5 and CSS 3 from minimum knowledge of HTML?
May
23
comment Getting the filename associated with a sample in the “Downloadable Information” area in Magento
Sweet. Even better!
May
23
revised Getting the filename associated with a sample in the “Downloadable Information” area in Magento
Removed introductory paragraph, which is no longer relevant.
May
23
suggested approved edit on Getting the filename associated with a sample in the “Downloadable Information” area in Magento
May
23
accepted Getting the filename associated with a sample in the “Downloadable Information” area in Magento
May
23
revised Getting the filename associated with a sample in the “Downloadable Information” area in Magento
Modified example with known working code.
May
23
comment Getting the filename associated with a sample in the “Downloadable Information” area in Magento
So I modified your answer to include the working code. I don't know if you have to approve it before it shows up, but you definitely got me going in the right direction, and I found the code that does it thanks to your help.
May
23
comment Getting the filename associated with a sample in the “Downloadable Information” area in Magento
Nope, the getURL() function returns the URL (e.g. example.com/samples/01), which (a) doesn't include the filename, and (b) just delegates to your browser to handle the view/playback of the sample appropriately. For example, the URL, if the sample is a PDF, will launch whatever your default PDF viewer is. In the case of .MP3s, for me the URL was launching my default media player, locally on my machine.
May
23
suggested approved edit on Getting the filename associated with a sample in the “Downloadable Information” area in Magento
May
23
comment Getting the filename associated with a sample in the “Downloadable Information” area in Magento
This got me headed in a good direction, but the best I could do with the methods mentioned above, as well as other ones that I found in the API, was get the base directory for the samples, e.g. /path/to/app/samples, rather than /path/to/samples/1/sample.mp3. I may just have to add this functionality. Luckily (I think), Magento is open source.
May
22
comment Getting the filename associated with a sample in the “Downloadable Information” area in Magento
I'll give this a shot tomorrow and let you know. Looks like the getSampleUrl() and/or getSamplePath() will get me what I need. Thanks!
May
21
answered I am 16 and want to learn how to develop websites (complex sites with video and members).. what language do you suggest I learn?
May
20
revised Getting the filename associated with a sample in the “Downloadable Information” area in Magento
edited title
May
20
asked Getting the filename associated with a sample in the “Downloadable Information” area in Magento
May
20
accepted Adding jPlayer to Magento site
May
19
revised Adding jPlayer to Magento site
Corrected a couple of typos / clarified my wording.