Skip to content

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

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

2 participants

@pujo
pujo commented Jul 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!

@udp
Owner
udp commented Aug 15, 2012

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

@udp
Owner
udp commented Jan 14, 2013

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

@udp
Owner
udp commented Jan 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
pujo commented Jan 17, 2013

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 Jan 17, 2013
@udp
Owner
udp commented Jan 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.