Forums / Developer / eZ Multiupload and the issue of the order of uploaded files

eZ Multiupload and the issue of the order of uploaded files

Author Message

Peter Keung

Thursday 08 October 2009 2:37:03 pm

The scenario is that the user uploads multiple images beneath a particular node, which eZ Multiupload does very well. If the user wants to manually sort those images, they can change the sort method to "Priority".

However, I am trying to figure out the best default "hands-off" approach. Some options:

- You can set the default sort method to "Published" (ascending). However, there is a limitation that I think is common across upload dialog boxes from many applications: the user can try to select an order (with a combination of control-clicking each file and click-dragging their mouse to select multiple files at once) but the order in which the files are actually uploaded follows some unknown or non-existent logic. To get around this limitation, the user can upload each file one by one, still realizing some time savings in the multi-upload interface, but becoming very cumbersome the more files you are uploading at once.

- You can set the default sort method to "Name" (ascending). Then, before the user uploads their images they can prepend numbering to the file names to determine the sort order. Of course, this affects the name on each created object, and you might not want a number in there.

Does anyone know the answer behind the mystery of pre-selecting the order of files in the upload dialog? Or has someone come up with the ideal default approach for letting users order their uploads?

http://www.mugo.ca
Mugo Web, eZ Partner in Vancouver, Canada

eZ debug

Timing: Jan 31 2025 01:26:51
Script start
Timing: Jan 31 2025 01:26:51
Module start 'content'
Timing: Jan 31 2025 01:26:51
Module end 'content'
Timing: Jan 31 2025 01:26:52
Script end

Main resources:

Total runtime0.2893 sec
Peak memory usage8,192.0000 KB
Database Queries141

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0073 588.1875370.2578
Module start 'content' 0.00730.0132 958.44531,001.5313
Module end 'content' 0.02050.2687 1,959.97663,891.0859
Script end 0.2892  5,851.0625 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00521.7932200.0003
Check MTime0.00150.5343200.0001
Mysql Total
Database connection0.00070.252310.0007
Mysqli_queries0.178061.53101410.0013
Looping result0.00180.63441390.0000
Template Total0.268392.710.2683
Template load0.00090.302810.0009
Template processing0.267492.429010.2674
Override
Cache load0.00060.208810.0006
Sytem overhead
Fetch class attribute can translate value0.00200.691610.0020
XML
Image XML parsing0.00030.087810.0003
General
dbfile0.00852.9447200.0004
String conversion0.00000.001730.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs