pekebyte / pekeUpload

jQuery html5 file uploader plugin
http://pekebyte.github.io/pekeUpload
Other
82 stars 73 forks source link

could anyone please help me on saving filename of uploaded file to mysql database #9

Closed aldwin closed 11 years ago

aldwin commented 11 years ago

any simple example or explanation will do.

hope someone can help me on this. thanks.

nd3w commented 11 years ago

Try to find function progressHandlingFunction, and find this line:

    obj.next('a').next('div').find('.file').first().find('.filename:first').text(file.name);

and change it to:

    obj.next('a').next('div').find('.file').first().find('.filename:first').text(file.name).append('<input type="hidden" name="fileName" value="'+file.name+'">');

fileName being your variable and its value is ready to pass into your PHP (or whatever) script.

aldwin commented 11 years ago

that worked :D thank you very much