Add feature detection for file uploads