I'm using the very good jquery plugin blueimp / jQuery-File-Upload
$('#fileupload').fileupload({
autoUpload: true
, filesContainer: '#attachments_presentation tbody'
, stop: function (e) {
console.log(data);
}
});
And I'm not able to do something very simple: get the list of uploaded files
(with their name on the server)
Firstly I naively though it would be stored on the file input so I could get the list with
$('#fileupload').val();
But it's not, so I though about something like
$('#fileupload').fileupload('getfiles');
I can't find the way from the docs
Can somebody tell me how I can get the list of uploaded file names in the server ?
Update
I'd like to get the uploaded files name on the server in order to be able to manage them afterwards.
For example:
- I upload a file named
trutruc.pdf
- I upload
test.png
- I re-upload a file named
trutruc.pdf
- I delete the first file
The current list of files in the server should then be test.png
, trutruc (2).pdf
Update 2
I'm using the default php script shipped with fileUpload
See Question&Answers more detail:os