-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Sugestion] Option to change the default order of the file uploaded #1179
Comments
You can control this in your server code.. e.g. the You can for example always read the file stack array on your server code in the reverse order (for DESC/ASC)... e.g. PHP provides array_reverse. Sorting of files on the client that are not yet uploaded is not a trivial programming and will be complex and is hence not added as a functionality - because of the various possibilities that user can do before uploading the file (e.g. cancelling, deleting, OR resizing, OR partially uploading and trying to reupload etc.) |
This is possible for files that are already uploaded, but i´m talking about the new files we add. It aways start in the end of the "table", in the "explorer" template, i think this is the way you append, instead of set it to the end, a option to add in the first row of the table. |
Will look at a possibility to see if I can add an enhancement. |
New boolean property reversePreviewOrder has been added. Refer the reverse preview order demo as well. |
Prerequisites
master
branch of bootstrap-fileinput.Steps to reproduce the issue
Add a new file.
Expected behavior and actual behavior
When a new file its added, it goes to the end of the list. I need it stays in the first of the list (more recent first). Something like a option : default_order = "ASC" or "DESC"
Environment
Browsers
Operating System
Libraries
Isolating the problem
The text was updated successfully, but these errors were encountered: