Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Downloading a file with no extension from browser automatically adds ".txt" #118436

Closed
isidorn opened this issue Mar 8, 2021 · 5 comments
Closed
Assignees
Labels
file-explorer Explorer widget issues ghcs-scenario-found github-codespaces *out-of-scope Posted issue is not in scope of VS Code upstream Issue identified as 'upstream' component related (exists outside of VS Code)

Comments

@isidorn
Copy link
Contributor

isidorn commented Mar 8, 2021

When downloading the compiled file (.out/app) in step 6, the downloaded file on my laptop is called app.txt. Something added the .txt extension automatically.

I'm using Edge 88 on macOS.

from @bamurtaugh @ItalyPaleAle

@isidorn isidorn added this to the March 2021 milestone Mar 8, 2021
@isidorn isidorn self-assigned this Mar 8, 2021
@isidorn
Copy link
Contributor Author

isidorn commented Mar 11, 2021

I investigated into this and this is just how Chrome (and thus Edge) behaves and I am not sure if we can introduce a workaround for this.
Since in this case we fall back to the simple download operation here

More about how chrome handles this can be found here https://developers.google.com/web/updates/2011/08/Downloading-resources-in-HTML5-a-download

So in short, we fall back to Chrome and Chrome decides to add .txt to a file with no extension

fyi @bpasero

@isidorn isidorn added the upstream Issue identified as 'upstream' component related (exists outside of VS Code) label Mar 11, 2021
@isidorn isidorn modified the milestones: March 2021, Backlog Mar 11, 2021
@ItalyPaleAle
Copy link
Contributor

Do you think it might make sense to create an archive (like a ZIP) of all files downloaded from Codespaces? This would not just solve the issue of the extension, but would also make the download potentially smaller, and would fix other issues like #112099

Just a thought :)

@isidorn
Copy link
Contributor Author

isidorn commented Mar 11, 2021

@ItalyPaleAle might make sense. Other software usually downloads as zip when there is more than one file to download.
If a user is just downloading one file, then putting it in a zip might just add one extra step...

@isidorn isidorn added the file-explorer Explorer widget issues label Aug 13, 2021
@isidorn isidorn assigned JacksonKearl and unassigned isidorn Aug 13, 2021
@lramos15 lramos15 assigned lramos15 and unassigned JacksonKearl May 25, 2022
@lramos15 lramos15 added the *out-of-scope Posted issue is not in scope of VS Code label Dec 15, 2023
@VSCodeTriageBot
Copy link
Collaborator

We closed this issue because we don't plan to address it in the foreseeable future. If you disagree and feel that this issue is crucial: we are happy to listen and to reconsider.

If you wonder what we are up to, please see our roadmap and issue reporting guidelines.

Thanks for your understanding, and happy coding!

@VSCodeTriageBot VSCodeTriageBot closed this as not planned Won't fix, can't repro, duplicate, stale Dec 15, 2023
@WRFan
Copy link

WRFan commented Feb 5, 2024

well, you may have closed the issue, but the issue with Edge appending .txt to files without an extension is not solved by that. I actually have to fall back to IE to download such files. Seems you have buried IE a little too early

mrworm added a commit to mrworm/py4web that referenced this issue Apr 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
file-explorer Explorer widget issues ghcs-scenario-found github-codespaces *out-of-scope Posted issue is not in scope of VS Code upstream Issue identified as 'upstream' component related (exists outside of VS Code)
Projects
None yet
Development

No branches or pull requests

8 participants