petrbroz / vscode-forge-tools

Visual Studio Code extension for accessing Autodesk Forge services and content.
https://marketplace.visualstudio.com/items?itemName=petrbroz.vscode-forge-tools
MIT License
74 stars 17 forks source link

Upload file now asks to select a content-type after selecting the upload file #25

Closed fpmalard closed 4 years ago

fpmalard commented 4 years ago

Screen Shot 2020-06-10 at 13 47 10

petrbroz commented 4 years ago

Yes, this was done on purpose, in case the user wanted to specify a content type other than application/octet-stream. I'm not sure if there are any specific use cases (I know that, for example, certain content types are not allowed: https://forge.autodesk.com/blog/changes-oss-upload-and-download-content-type-header-security-improvement), though, so if you think this is not needed, perhaps we could hide this prompt behind a config flag?

ofcdesk commented 4 years ago

I see. I believe it could be an option once the default "octet-stream" would be the most used option thus allowing users to skip this step. If you think about the multiple files fashion, it would be even more boring to keep selecting this multiple times.