Using and handling images and their metadata
To limit the uploads to images, only, I think you want something like: image/* as your MIME filter. There may be additional hints in the docs. The examples show using a pipe — not a comma.
You may also be able to limit the MIME type by configuring it for the file gallery you're using with the tracker.
This may be more complex.... If you're trying to duplicate the Tiki process that allows you to upload an image and then select/use it immediately, you'll need something like this:
- First, you'll want to edit the toolbar to remove the current upload button (or move to the Admin section).
- Then, you'll want to make custom QuickTag that calls the page your tracker form uses (I assume you're using a pretty tracker page and not the default tracker form — it will make things much easier). You'll probably want to open the tracker form with no header/footer/modules, too, in a separate window or modal.
- Finally, you'll need to write some JS for the tracker body/action that upon form submission, will close the popup window (e.g., window.close) and then add the {img...} to the wiki editing form. I'm sure that someone else may have a better solution for you.
This means, of course, that you only allow users to upload images while their editing pages. I'm not sure what your expected flow or usecase is for your site.
An alternative is to just let users upload their image separately from the editing process. Then you simply limit their ability to choose/browse images to whatever specific file gallery you're using for your tracker upload.
HTH,
- Rick | My Tiki Blog | My Tiki UserPage
Tiki for Smarties, your source for the best (and only) Tiki books, guides, and tutorials.