danielm / uploader

A lightweight and very configurable jQuery plugin for file uploading using ajax(a sync); includes support for queues, progress tracking and drag and drop.
https://danielmg.org/demo/java-script/uploader
MIT License
1.17k stars 384 forks source link

Name of Saved File #104

Open Donkeh68 opened 5 years ago

Donkeh68 commented 5 years ago

Hi,

Thanks for a great plugin. I'm using the basic demo version and it's perfect except for one thing: how do I get the name of the file on the server? I figure I can use the template function to insert it in a data property, but I need help getting the saved name.

Kind regards, Tim

sahuadarsh0 commented 5 years ago

same here

Donkeh68 commented 5 years ago

I managed to resolve this myself, so here are the steps, so as to help anyone else with the same problem: 1) Create a holder for the file name

2) Send the data to the template function on successful upload

3) Populate the template field

Easy when you know how ;)