correct variable name
blueimp is vendor, not jquery-fileupload
sort attachments by domain, logic withheld
Uploads work. ToDo: yyyy/mm subdirectories will reduce file lists for performance