Refactor file upload checks.

Ensure files live within the dropbox.