Language:
App Running
Application Preview 🐍 Python
πŸ“ Asset Intake
Where uploads are checked before the asset store files them
πŸ’₯
Application Crashed
Syntax error in code
Intake Decision:
Pick a destination, then upload a file
πŸ“¦ Destinations
πŸ“₯ Today's intake
FileDestinationFiled as
🎯 Objective
Scenario: This is the check the asset store runs before it files an upload. Three incidents are open against it: a file the media host went on to run, a campaign template that was accepted into the media library and then executed in visitors' browsers, and an upload that was written outside the library it was addressed to.

Your Task: Make validate_upload accept an upload only when the destination it is addressed to is one the service offers and can take the file, and file every accepted upload under the file's own name.

Success Criteria:
  • Nothing a destination cannot take is accepted into it, whichever destination that is
  • Every upload in Today's intake still goes through, and is filed under the name shown against it
  • Read the Destinations panel and run the Open Incidents before you click Verify Fix
🚨 Open Incidents
Code Editor