Resolved. In the name of the application you need to pass the extension you would like. “Filename.pdf” to make it say “application/pdf” instead of “application/octet-stream”