I am using this script
It works well, but I want to sort the results by placing the last image at the beginning of the list and not at the bottom. As the MySql ORDER BY.... Can anyone help me? thanks
I am using this script
It works well, but I want to sort the results by placing the last image at the beginning of the list and not at the bottom. As the MySql ORDER BY.... Can anyone help me? thanks
Good news! It's built right into the functionality as a configurable option. Do this:
Your code will look like this when done:
// By default, files are appended to the files container.
// Set the following option to true, to prepend files instead:
prependFiles: true,
The option you want is called: prependFiles
By default, files are appended to the files container.
Set this option to true, to prepend files instead.
Type: boolean
Default: false
( the above is from https://github.com/blueimp/jQuery-File-Upload/wiki/Options#prependfiles )
You do not need to edit any core files such as jquery.fileupload-ui.js !!
Instead just initialize your fileUpload component like this:
$('#fileupload').fileupload({
prependFiles: true
});