This question already has an answer here:
I am trying to get rid of the master page header that appears on the Upload Document popup. How can I accomplish that? Is there any specific css classes that I can use?
When I view the page source of the dialog, it has the master page code on it for displaying this header. How can I hide this header in the dialog alone and not in the main sharepoint page?