Skip to content
This repository

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

Closed
pujo opened this Issue July 27, 2012 · 5 comments

2 participants

pujo James McLaughlin
pujo
pujo commented July 27, 2012

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
udp commented August 15, 2012

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

James McLaughlin
Owner
udp commented January 14, 2013

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

James McLaughlin
Owner
udp commented January 14, 2013

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 January 17, 2013
James McLaughlin
Owner
udp commented January 20, 2013

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.