开发者

Get the new filename after uploading with uploadify

开发者 https://www.devze.com 2023-03-07 19:31 出处:网络
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开发者_开发问答.

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 :)

0

精彩评论

暂无评论...
验证码 换一张
取 消