You can hook into add_attachment and/or edit_attachment actions and carry out an update on your separate database with the appropriate info. In both cases the attachment ID seems to be the only argument but you can easily get_post or get_post_meta if you need anything else.
Cheers!
Related Posts:
- Prevent changing the length of post_name column on WordPress Update
- Can’t update database after wordpress update from 3.8.1 to 4.4.1
- What ALL can cause “Another update is currently in progress.”? [closed]
- Trigger Plugin database update after git pull
- Are custom tables in the database overwritten when WordPress is updated to new versions?
- How to get the SQL of the changes made to the database from an update or upgrade?
- Displaying BLOB PDF File
- Update from 4.5 to 4.6 failing
- Migrate database between 2 different wordpress version
- Is database deleted on clicking “reinstall” button in WordPress updates?
- What is the best way to resurrect and update my old WordPress site?
- Add pdf to a website
- Disable Database Update Required ? break my website
- Brandoo WordPress Unable to Update to WordPress 4.2.2
- Will adding & modifying default WordPress table index break future WordPress update
- _wp_attachment_metadata is not being added to database when PDF files uploaded
- generate PDF from member information
- Adding last value from Database as text in WordPress Page
- get_the_terms is not working
- wp-config was suddenly updated
- How to generate PDF dynamically based on values from the database in WordPress
- Editing a WordPress post content from the database does nothing
- Set limitations of wp_update_post()?
- How to resolve ORA-011033: ORACLE initialization or shutdown in progress
- Oracle SQL query for Date format
- Failed to connect to mysql at 127.0.0.1:3306 with user root access denied for user ‘root’@’localhost'(using password:YES)
- Can I have multiple primary keys in a single table?
- Using wpdb to connect to a separate database
- Database connection close
- How to create bulk page and content? [closed]
- Importing posts from old website to new conflicting post ID’s?
- Exporting revisions
- WordPress for a very large website
- How to use multiple database in wordpress?
- WP_list_table bulk_action get edit and delete
- Is removing orphaned wp_postmeta records safe?
- Error connecting to DB in /wp-includes/wp-db.php on line 1538 [closed]
- Why are no posts showing despite my apparently correct DB restoration?
- How to query the WordPress database to get posts of a certain custom post type, taxonomy and field?
- Cannot update custom database table row
- SQL Error wp_commentmeta – incorrect table definition
- Change WordPress prefix for only one table?
- Two websites one database, administrator not working on second website
- Select two sums with single get_var statement
- How can i add custom fields into the contact form 7 [closed]
- Make an Items attribute searchable (taxonomy using existing attribute)
- Store partial database to an archive database time to time
- Use same database on main domain & sub domain
- How do I convert a MySQL database from utf8mb4 to utf8 encoding?
- Why user_pass column in wp_users table is varchar(64)
- Best practice to limit results in get_row()?
- Reinstalling wordpress from database breaks the site
- Pages from custom table
- Trouble running $wpdb->query() with last_insert_id
- Using $wpdb | checking entered email against existing emails in db
- wp-cli: Error establishing a database connection: undefined constant DB_USER
- Can I customised default WP table
- Woocommerce – Check product stock availability from external database
- Get results from wordpress data custom table
- Outputting query results
- Help With a Large WordPress Based MySQL Database on Shared Hosting
- How to display data from db in select list [closed]
- Database migration issues – Error #1046 No database selected
- Connect a membership plugin to an external database
- Compare User meta_value with Product meta_value
- Storing user’s data on external database on other server
- is it right choose to connect database in template page directly in WordPress site?
- How to insert a value to decimal type field using wpdb->prepare?
- Sql query to get all metadata for a post
- Is there a way to edit the WP content database in an admin panel or external page?
- Where do I put my create_new_table function()?
- SQL database import #1046 error
- Get all top categories, then only 3 posts for each
- Having all “non-PHP” files on a different server
- syntax error for changing user role from database
- Finding a page holding a specific string/URL that is used in the content
- “wordpress error in establishing database connection” and missing tables
- get_option() does unserialize and don’t remove \
- next comment id number wordpress
- Merging development site with live site
- Backup Restore turns carriage returns to literal strings
- I have a WordPress 4.6 database dump – how do I use it in a new install?
- Checking if the data already exsis in the wp database – custom plugin
- live site do not update after importing sql database
- How can I retrieve data from alternate database using wpdb class?
- Author ID mismatch from database
- MySQL Database User: Which Privileges are needed?
- Import Excel (or csv) Table with user-data as subscribers to wordpress
- Automatic add record after refreshing page
- User accounts for saving form data?
- Trying to edit a WP site locally using MAMP
- SQL query : Select a thumbnail for a media
- WordPress API standard compliance and specification for external database [closed]
- Log IP of users who click a button? [closed]
- DROP TABLE IF EXISTS `wp_options` error?
- Problem with form database connectivity
- Server database problem
- How to update multiple row by one query
- Have WordPress Use a Different Database for users
- WordPress post on home page of my website