Drag and drop attach has been languishing for quite a while. (See
http://www.twiki.org/cgi-bin/view/Codev/DragAndDropAttach
)
This item is to enable checkin of the prototype to svn.
I've updated my prototype to be a full HTML5 Attach implementation - that is, in addition to drag and drop, it also does multiple file attach using the HTML5 multiple file selection widget. And HTML5 also enables us to put the client's last modified date on files. Note that you can drag as many files at once as you like - I've done hundreds - but not folders (an HTML5 limitation). Files are sent one at a time, and any quota is per-file,
not per-upload.
Only Pattern Skin has been updated; I'm not planning on updating the others, but this can be used as a template.
Although the port to trunk is new and may have introduced the odd bug, the base code has been running for quite a while here. It's documented as an experimental feature.
The attach page automagically detects whether your browser is HTML5-compliant. If it is, you get the new UI. If not, you get the old. You can force the old with ?nohtml5 - for emergencies, or debugging. You can't force HTML5 - if your browser doesn't have the features, there's no point. There's a pointer to a topic that discusses the feature and its configuration options.
The packaging is somewhat unusual - this is because the core javascript is used in several other applications, so it has to be configurable by the page. This is also why the TWiki namespace is not used.
The graphics are a bit crude and somewhat colorful - a project for someone else. The documentation is complete, but rough.
Also, the js isn't I18n-compliant; I'm open to a reasonable approach so long as it isn't tied to TWiki. (If you fork the js, you own it.)
The code in Upload is particularly ugly - the approach was to minimize the risk to legacy operation - although the legacy code should be rewritten.
--
TWiki:Main/TimotheLitt
- 2014-02-11
I am setting this to "closed". Work is finished by Hideyo-san in
PatternSkin.
--
TWiki:Main.PeterThoeny
- 2014-10-04