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

veb example file_transform port typo #22508

Closed
jorgeluismireles opened this issue Oct 12, 2024 · 0 comments · Fixed by #22511
Closed

veb example file_transform port typo #22508

jorgeluismireles opened this issue Oct 12, 2024 · 0 comments · Fixed by #22511
Labels
Unit: Documentation Bugs/feature requests, that are related to the documentations.

Comments

@jorgeluismireles
Copy link

jorgeluismireles commented Oct 12, 2024

Describe the issue

The example cannot upload a file since the program uses two different ports: 8080 and 8082 in file_transform.v and index.html files.

Links

examples/veb/file_transform/file_transform.v

const port = 8082

pub struct Context {
	veb.Context
}

pub struct App {
}

fn main() {
	mut app := &App{}
	veb.run[App, Context](mut app, 8080)

https://github.com/vlang/v/blob/da3112e5453b553ca230d47590e0d3ed6be6478d/examples/veb/file_transform/index.html

<form method="POST" enctype="multipart/form-data" action="http://localhost:8082/upload">

Note

You can use the 👍 reaction to increase the issue's priority for developers.

Please note that only the 👍 reaction to the issue itself counts as a vote.
Other reactions and those to comments will not be taken into account.

@jorgeluismireles jorgeluismireles added the Unit: Documentation Bugs/feature requests, that are related to the documentations. label Oct 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Unit: Documentation Bugs/feature requests, that are related to the documentations.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant