jquery - Rails & FilePicker gem - how to obtain metadata of uploaded files? -


i using filepicker gem , saving files amazon s3 bucket. save metadata of uploaded files database, stuck how - in documentation gem written:

accessing filepicker file onchange:

when dialog finishes uploading file, javascript code in onchange field run special 'event' variable. variable has fpfiles (or if not multiple, fpfile) attribute information files (jquery users: under event.originalevent).

but still fighting way how implement fetching these data jquery - ask thing? upload s3 bucket working well, don't know how pull metadata of uploaded files.

thank time

i think there similar question in accepted answer too: using filepicker-rails gem, how can show users confirmation avatar has been succesfully uploaded?

basecally can register onchange event on file input field, first parameter of called function event object holding meta data.


Comments

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -