Skip to content

Allow direct access to files under a path #1292

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

Closed
smhsketch opened this issue Jan 23, 2020 · 10 comments
Closed

Allow direct access to files under a path #1292

smhsketch opened this issue Jan 23, 2020 · 10 comments
Assignees
Labels
enhancement Some improvement that isn't a feature
Milestone

Comments

@smhsketch
Copy link

I am trying to open an HTML file on my PC. code-server is being hosted on a spare PC. I can open and view the file just file in the cloud IDE, but I'm trying to view the HTML file as it would be shown on a website. I've tried navigating to "MYIPADDRESS:8080/home/MYUSERNAME/Projects/alarm-clock/index.html", but that doesn't work. It's probably a very obvious answer, but I haven't been able to find anything about it here.

@sr229
Copy link
Contributor

sr229 commented Jan 24, 2020

There's some extensions that facilitate proxying so try those.

@nhooyr
Copy link
Contributor

nhooyr commented Jan 27, 2020

You'd need to setup a HTTP web server. I suppose we could handle this under another endpoint.

Thoughts @code-asher

@nhooyr nhooyr added enhancement Some improvement that isn't a feature needs-investigation and removed question labels Jan 27, 2020
@nhooyr nhooyr self-assigned this Jan 27, 2020
@nhooyr nhooyr changed the title [idiot question] how do I open an HTML file in the browser of my computer? Allow direct access to files under a path Jan 27, 2020
@nhooyr
Copy link
Contributor

nhooyr commented Jan 27, 2020

I'll take care of this.

@nhooyr
Copy link
Contributor

nhooyr commented Jan 27, 2020

We should add an easy way to open files by right clicking as well.

@smhsketch
Copy link
Author

thanks!

@code-asher
Copy link
Member

I recently had to make changes to the /static endpoint which made it possible to get any file on the system as long as you're authenticated. For example you can use http://<domain>/static/-/home/coder/project/index.html. Just need to add the context menu option.

@nhooyr
Copy link
Contributor

nhooyr commented Oct 7, 2020

context menu option.

wdym by this?

Can this issue not be closed?

@code-asher
Copy link
Member

code-asher commented Oct 7, 2020

Ah I was referring to your comment:

We should add an easy way to open files by right clicking as well.

Currently we don't have that right-click context menu option.

@code-asher
Copy link
Member

We could wrap that into #1386 though.

@nhooyr
Copy link
Contributor

nhooyr commented Oct 9, 2020

Moved it into #2179

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Some improvement that isn't a feature
Projects
None yet
Development

No branches or pull requests

4 participants