Problems, need help? Have a tip or advice? Post it here.
6 posts Page 1 of 1
If I want to host short, (e.g. voice,) audio on my site, is there anyway to allow users to upload it like they would an image, and place it in the uploads/media directory? I am hoping to not get them to have to use FTP, or a hosting service filemanager. Maybe this is just an editor extension. I have not looked into that yet, but I will right now.
How about a 'file' editable region @atenhotep:
Code: Select all
<cms:editable name='my_audio' type='file'/>
Hey Cheesypoof,

Thanks for such a quick reply. :) I found that workaround on the forum last night, when I came back after looking for a CKeditor solution. What I found there seemed like it was really about internet embeds vs uploading to the server the editor is on. A search for 'video uploads' on the forum brought me to your solution. CKeditor also looked like I'd need to build a whole new version of the editor rather, than simply add a plugin to the existing one. :o I hope I am wrong about that.

I may go with file workaround, or I may try and see if I can implement 'Media' since it seems all of 'Images', 'Flash', and 'Files' are already implemented. I like the idea of doing it 'right', espcially since Couch by default already makes the directory. If you can tell me that there is a reason that it is really hard :x , and that is why it's not already implemented, I'll trust you, and go with the workaround. Otherwise, I like Couch enough to want to dig into it more anyways, even if this is really digging into CKeditor mostly.

From some of the forum posts, it seems like old Couch may have given access to the top level 'uploads' directory from which someone could go anywhere beneath it. If that is the case, may I ask why it was decided to do something so much more restrictive? Or, is that just a CKeditor issue? :?:

It seems strange to me to have the uploader be so restrictive in the directories that it makes availabe. If people want to be unsemantic in where they put their assets why not let them, :o vs. decide that flash ssets have to be below the flash directory, image assets have to be below the image directory, and similarly for files and presumably media. I'd separate the latter into audio vs video myself if I just had access to uploads from the top level.

If I assume tmp is a working directory, why does media exist, but not have an uploader for it? :?: That's my 20 cent question?
I wouldn't necessarily refer to the type 'file' editable region as a workaround in this case, it should be the recommended solution.

From what I understand of your use case, CKEditor wouldn't be involved in any way. Do remember, CKEditor is only used in type 'richtext' editable regions. Furthermore, if you wished to add some functionality to CKEditor, it is in fact quite extensible. Take a look at their addons list - http://ckeditor.com/addons/plugins/all.

Ever since I started using Couch (4+ years ago), there has not been access to the parent 'uploads' directory. As I understand the matter, it is the file managers that Couch has used that create the distinction between file, flash, image, and media. If Couch had dedicated audio and video editable regions (with admin-panel media players), then I imagine we would make use of the media directory for such uploads.

Is your complaint that you would prefer your audio file to be located at uploads/audio/song.mp3 instead of uploads/file/song.mp3 or uploads/file/audio/song.mp3?

Perhaps @KK can clarify any points that I missed or did not state correctly...
I agree with @cheesypoof - Couch controls only the top level folder (i.e. 'uploads') and allows it to be renamed or moved to a different location through config.php.

The subfolders of the 'upload's folder are all the creation of CKEditor/KCFinder and Couch has no say in those.
OK! So I get that using a 'file' editable is the official Couch way. From what little poking around in the code I did, I could tell that where things were being stored had to do with CKEditor/KCFinder. When I looked at the CKEditgor plugins the "add to" was confusing for me, and I didn't quickly notice how I'd add plugin to an existing editor vs, building a full verion of CKEditor for myself. I am sure that was just me moving too fast.

Yes, it was simply about having the straight forward semantics of having audio and/or video files below media, vs below files. So much is right about Couch, that I am not at all surprised that the directory structure, and lack of control over it, isn't really about Couch but a tool that it is using.

In my use case, blog entries, a 'richtext' editable was already a part of the template, so it would have been easy and natural to train users, to use the filemanager associated with that, that could have reached into the 'media' folder, as the place to add audio files from. The image and flash panels for uploading and/or adding assets, also return the URL. I have already created my own shortcode for the actual embedding into a 'richtext' field, but don't have a Couch based way, to put the files where I'd like them to go.

In the interest of time, I will capitulate, to using the 'file' editable for uploading the audio assets, with a desc attribute that requests they copy paste the URL for the 'file' into the shortcode in the 'richtext' field. At some point, I may still look into CKEditor a little more deeply, and how it could be extended by code or plugin for the naturalness of my current use case, which is to allow local audio to be easily be embedded into blog content. It still seems to me that the 'file' editable makes more sense for the coder/designer's use than for the website owner's use, as well as being a somewhat less semantic location. Well, at least for my use case. So it goes ...

Thanks again to both of your for a such a great product, and your timely support response.
6 posts Page 1 of 1