Pointing to a file instead of uploading?
kjv1611 - February 3, 2009 - 00:33
| Project: | MP3 Player |
| Version: | 6.x-1.x-dev |
| Component: | Documentation |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed |
Jump to:
Description
Does this module support (or will it) pointing to a particular directory/file on the server instead of just uploading the file? I tried a few different configurations, but could not seem to get that to work. The upload seems to fail for me, time-out issue, I think, b/c of the size of the files (usually at least about 20MB. Then again, that might have just been my internet connection at the time.
Regardless, I'd rather have that option instead just the upload option if possible.
Thanks for any info, so far this seems really great! It is answering some of the things I was not liking with the audio module so far (May just be my understanding there as well).

#1
Yeah you could use a text CCK field to hold a url that gets fed into the custom mp3 code on a custom node template.
#2
Hmm, I'll give that a try. I think that'll be easier.
If it ends up ever being possible with your time, in the code (I'm sure it's possible, but don't know how difficult it would be), it'd be great to be able to somehow have an option to 'import audio' like in the "audio module" or either maybe to have a "browse to" button that will browse to a location on the web server for the file location.
But I'll take a look at the text field idea. I definitely don't mind typing in an address when/if necessary.
I'll try to get around to messing with that today, and post back whenever I am able to get to it, with the results.
Thanks for the reply, and GREAT work overall on this project! I hope it ends up being one that sticks around for a while. Perhaps one day, I'll have learned enough that I could be a real contributor to it, as I plan on making a lot of use of it on our church site once I get that little kink worked out.
kjv
#3
In case anyone reads this anytime soon... I am trying to figure this one out. I created a text field, but I don't have the slightest idea as to how to point the the mp3 player to it. I'll keep tinkering... I'm wondering if I need to "share" the text field, and then reference that with a file field, then reference the file field with the mp3 player in the Display options (ala the "how to" video - pointing the mp3 player)..
If anyone thinks I'm going the wrong direction (and of course reading this), please let me know. ;0)
Thanks.
#4
Looks at the docs here for custom code use: http://drupal.org/node/361984
So instead of
$node->field_mp3['0']['filepath']it would look something like$node->field_file_url['0']['view']It would be great addition to the FileField module if you could choose a file already on your system instead of uploading a new one. I'll have to look into the Audio module and see if it's possible in FileField. It's not going to pay the bills however so it's not high on my agenda.
#5
I totally understood on the time/priority deal.
At least that will give me a thought, something to possibly dig into myself. If I do get to tinker with it, and get something to work, I'll be sure to post back with what I did, so you can add it or document it or whatever.
Thanks,
kjv
#6
#7
The FileField Sources module provides this functionality.
To get a file which is already on your own server, you either need:
#8
Great solution. Cheers.
#9
Automatically closed -- issue fixed for 2 weeks with no activity.