Custom button not getting any data on post
Jamroom Developers
If it is only a file upload, then you're not going to get anything in $_post. $_post is for "normal" form fields.
you will need to use the jrCore_get_uploaded_media_files() function if you want to see what files were uploaded - i.e.
$_im = jrCore_get_uploaded_media_files('yourModule', 'module_file', $_user['user_active_profile_id']);and then jrCore_save_all_media_files() to save then files to the proper profile location - i.e.
jrCore_save_all_media_files('yourModule', 'create', $_user['user_active_profile_id'], $id);Where in this case $id is the unique datastore item_id for the created item (it must be created first, then you handle the file uploads).
Hope this helps!
