开发者

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

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜