Witajcie ;-)
Mam skrypt ze strony: https://github.com/blueimp/jQuery-File-Upload/downloads
Upload plików.
Tylko jak teraz zrobić, żeby wyświetlały się pliki tylko ostatnio uplodowane?

Domyślam się że chodzi o ten kod js i html (poniżej):

  1. <script id="template-download" type="text/x-tmpl">
  2. {% for (var i=0, file; file=o.files[i]; i++) { %}
  3. <tr class="template-download fade">
  4. {% if (file.error) { %}
  5. <td></td>
  6. <td class="name"><span>{%=file.name%}</span></td>
  7. <td class="size"><span>{%=o.formatFileSize(file.size)%}</span></td>
  8. <td class="error" colspan="2"><span class="label label-important">Error</span> {%=file.error%}</td>
  9. {% } else { %}
  10. <td class="preview">{% if (file.thumbnail_url) { %}
  11. <a href="{%=file.url%}" title="{%=file.name%}" rel="gallery" download="{%=file.name%}"><img src="{%=file.thumbnail_url%}"></a>
  12. {% } %}</td>
  13. <td class="name">
  14. <a href="{%=file.url%}" title="{%=file.name%}" rel="{%=file.thumbnail_url&&'gallery'%}" download="{%=file.name%}">{%=file.name%}</a>
  15. </td>
  16. <td class="size"><span>{%=o.formatFileSize(file.size)%}</span></td>
  17. <td colspan="2"></td>
  18. {% } %}
  19. <td class="delete">
  20. <button class="btn btn-danger" data-type="{%=file.delete_type%}" data-url="{%=file.delete_url%}">
  21. <i class="icon-trash icon-white"></i>
  22. <span>Usuń</span>
  23. </button>
  24. <input type="checkbox" name="delete" value="1">
  25. </td>
  26. </tr>
  27. {% } %}


Demo jest tutaj:
http://blueimp.github.com/jQuery-File-Upload/


Proszę pomózcie !
Daje ++++
Może to być rozwiązanie nawet i z baza danych albo jakkolwiek.