Get the new filename after uploading with uploadify
I have uploadify working nicely. When the back-end php is loaded the filename is uploaded with new filename and which is entered in the database using a new unique id开发者_开发问答.
How can I send the new filename back to the page that contains the form?
There you go :-
'onUploadComplete' : function(file, response, data) {
alert('The File ' + file.name + " has been uploaded with response "+response);
$('#brandImage'+i).val(file.name);
i++;
}
you can use response
parameter to send filename and use it to your html :)
精彩评论