Loading...
 
Features / Usability

Features / Usability


Auto upload a file when editing

posts: 12

It would be really useful to be able to insert files on to a page with a link similar to the approach of inserting an image on to a page.

In Edit mode, you should have an Upload File option that would upload the file and insert into the text of the page a tag to link directly to the file. Sort of like the Attach file link in the forums.

I want my users to easily upload a file while editing a page rather than having to go through an extra Attach file process. Furthermore, I want the file to be easily accessible as a link directly from the page, without the author of the page having to look up a link and paste it in.

Any ideas on this?

posts: 63 United Kingdom

I can think of a way... And it involves coding ;)

Basically, I would suggest you hack the images system for editing a wiki page and add a modded version which allows files of all types to be uploaded in the exact same way as images - except that files should be uploaded to the attachents path, so that they can be removed again as an attachment. Then just drop in a link in the same way that adding images adds a tag.

I guess what you'd need, as well as a modded image upload system, would ba a wiki tag which links to the attached file, really.

How do you feel about coding that?

posts: 12

> How do you feel about coding that?

It's mostly a matter of finding some spare time to do it. You describe much of what I was suspecting.

What specifically do you mean by a wiki tag? Is this something like the plugin tags or toc tag?

I was already thinking that at least part of this could be improved by having a simple tag or plugin that allowed you to directly link to an attachment from within the page. Maybe a plugin style thing that allowed you to insert a table of filtered attachments, possibly filtering for most recent revision of a file.

If I were to take such a thing on, should it be done on the 1.9/HEAD or done for 1.8.x?


posts: 12

> How do you feel about coding that?

It's mostly a matter of finding some spare time to do it. You describe much of what I was suspecting.

What specifically do you mean by a wiki tag? Is this something like the plugin tags or toc tag?

I was already thinking that at least part of this could be improved by having a simple tag or plugin that allowed you to directly link to an attachment from within the page. Maybe a plugin style thing that allowed you to insert a table of filtered attachments, possibly filtering for most recent revision of a file.

If I were to take such a thing on, should it be done on the 1.9/HEAD or done for 1.8.x?