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

Problem with form fields in multipart/form-data #109

Open
konrad-kruczynski opened this issue Jun 30, 2011 · 2 comments
Open

Problem with form fields in multipart/form-data #109

konrad-kruczynski opened this issue Jun 30, 2011 · 2 comments

Comments

@konrad-kruczynski
Copy link
Contributor

I am not sure whether this is an issue or assumption. Currently, values given in the multipart/form-data form are not inserted to method parameters by Manos (i.e. we have default value there) as if they were not sent by browser.

@jacksonh
Copy link
Owner

jacksonh commented Jul 1, 2011

Thanks, his does appear to be a valid issue. However, just to make sure we are all on the same page can you submit a test case?

@konrad-kruczynski
Copy link
Contributor Author

Sorry for the late response. Here's the test case. First HTML:

<form method='POST' enctype='multipart/form-data' action='/upload-go'>
    <input type='file' name='datafile'>
    <input type='hidden' name='dirPath' value='something'>
    <input type='submit'>
</form>

and Manos code:

[Post("/upload-go/")]
public void Upload(IManosContext ctx, string dirPath)
{
    // dirPath is null here
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants