Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gettign uploaded filename on client side. #253

Open
tomvolek opened this issue Oct 30, 2017 · 0 comments
Open

gettign uploaded filename on client side. #253

tomvolek opened this issue Oct 30, 2017 · 0 comments

Comments

@tomvolek
Copy link

I need to assign the file name of the uploaded file to a text input field name on the client side . How can I do this ?

server side: I can see the file name on server side, getFileName: function(fileInfo, formData) { console.log("filename",fileInfo.name)

client side : Uploader.finished = function(index, fileInfo, templateContext) {
console.log("filename",fileInfo.name) <== returns undefined.
document.getElementById("ProductImage").value = fileInfo.name;
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant