debug_assets.php Changes:
1. Added Quick Asset Lookup by ID
- Form to search for specific asset ID
- Shows if asset exists in DAM
- Displays parent folder(s)
- Direct link to view folder
- Helps debug "where did my upload go" issues
2. Added delete debugging
- Log HTTP response code
- Log response body
- Check for both 200 and 204 status codes
- Better error messages with HTTP codes
3. Added direct asset display
- Shows complete asset details
- Lists all parent folders
- Full JSON preview
Usage:
- Enter asset ID 214817 in Quick Lookup
- Click "Check if Asset Exists"
- See which folder(s) it's in
- Verify upload worked
For Delete:
- Click delete button
- Check logs: tail -f /Applications/MAMP/logs/php_error.log | grep "DEBUG DELETE"
- See HTTP response and error details
🤖 Generated with Claude Code
debug_assets.php Changes:
- Added delete_asset action handler
- DELETE /v6/assets/{id} API call
- 🗑️ Delete button for each asset
- Confirmation dialog before delete
- Auto-refresh folder after delete
- 🔄 Refresh button to reload folder assets
- Success/deleted message display
workflow_v3.php Changes:
- Show upload folder ID in success message
- Add 🔍 View in Final Assets Folder link
- Direct link to debug_assets.php with folder ID
- Pass upload_folder and master_asset_id in response
Features:
✅ Delete test assets easily
✅ Refresh folder to see latest uploads
✅ Direct link to view uploaded assets in folder
✅ Confirmation before delete
✅ Auto-redirect after delete
Usage:
1. Upload asset → Click 🔍 View in Final Assets Folder link
2. See all assets in that folder
3. Click 🗑️ Delete to remove test assets
4. Click 🔄 Refresh to reload after upload
🤖 Generated with Claude Code
Issue: Assets uploaded with original filename including OMG Job # and Tracking ID
Fix: MetadataMerger now builds clean filename from parsed components for ASSET NAME field
Changes:
1. MetadataMerger.applyFilenameData()
- Build clean filename from components (no OMG Job, no Tracking ID)
- Use for ARTESIA.FIELD.ASSET NAME metadata
- Format: BRAND_COUNTRY_LANG_TITLE_TYPE_VER_SECS_RATIO
2. debug_assets.php
- Show "Get Assets" button for ALL folders (not just Master Assets)
- Allows viewing Final Assets folder contents
- Added campaign_id parameter to maintain context
Result:
Before: 1234567_RAF_DE_de_TEST-JOB_OLV_001_6S_16x9_BJP4ho.mp4
After: RAF_DE_de_TEST-JOB_OLV_001_6S_16x9.mp4
Both the file AND the metadata now use the clean filename.
🤖 Generated with Claude Code
Fixes:
- Extract folder/asset names from INER_NAME_GENERIC field (correct field ID)
- Add fallback to 'name' field if metadata field not found
- Fix debug_assets.php to maintain campaign_id in URL parameters
- Add "Clear Workflow Data" button to reset cached session data
- Improve error messages when files don't exist in storage
- Allow status update even if downloads fail (test environment)
Changes:
- Update extractFolderName() to check INER_NAME_GENERIC first
- Fix debug_assets.php folder and asset name extraction
- Add clear_results action to workflow_v3.php
- Show folder names correctly in debug interface
- Display clear message about test environment file availability
Working:
✅ OAuth2 authentication
✅ Campaign search by status
✅ Folder navigation
✅ Asset listing with correct IDs
✅ Metadata extraction
⚠️ Download fails - files don't exist in test environment storage
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>