Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Bug in upload file form, getting other fields values #32

Closed
pujo opened this Issue · 5 comments

2 participants

pujo James McLaughlin
pujo

I have a small sample form -> replaced < > with ( )


 (form method='POST' enctype='multipart/form-data' action='uploadsrc')
 (label for="folder")Folder to save(/label)(BR)
 (input name="folder"  size="30"/)(BR)(BR)
 (input type=file name=upfile size="30"/)(BR)(BR)
 (input type=submit value="Press to select")
 (/form)

When I try to get the "folder" property with Request.POST("folder") I'm retrieving a "-----------------------------7dc32e25250ff6" string.

I have made some debugging and I think the bug is the multipart.cc file line 177.


...
Client.Request.PostItems.Set(Disposition.Get("name"), Buffer.Buffer);
...

Thanks again!

James McLaughlin
Owner

Is this issue still present with the latest commit I made?

James McLaughlin
Owner

Hi pujo - Just wondering if I can close this now?

James McLaughlin
Owner

Hmm, I'm having trouble building on Windows at the moment with the 0.5.x changes, so don't worry about testing this for now.

pujo

Yes we can close.
And yes, I'm having some problems on Windows build with MSVC. I keep making some tests..
Thanks James for your efforts!

pujo pujo closed this
James McLaughlin
Owner

Should build correctly with MSVC now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.