Update index.js

content-type based on accept header for iframe upload