I am using FilePicker gem and saving files to Amazon S3 bucket. I would like to save metadata of uploaded files into my database, but I stuck how to do that - in the documentation to the gem is written:
Accessing FilePicker File with OnChange:
When the dialog finishes uploading the file, the javascript code in the onchange field will be run with a special 'event' variable. The variable has a fpfiles (or if not multiple, also fpfile) attribute with information about the files (jQuery users: look under event.originalEvent).
But I am still fighting with a way how to implement fetching these data with jQuery - could I ask you for help with this thing? Upload itself to S3 bucket is working well, but I don't know how to pull metadata of uploaded files.
Thank you so much for your time