Forgot to add environment info pyramid: 1.3a6 python: 2.7 os: ubuntu on a vagrant VM on a mac.
On Feb 8, 1:03 pm, Craig Swank <craigsw...@gmail.com> wrote: > Hello, > I just got wailed on by a file upload for about an hour. Does anyone > know why, when I post this form to my pyramid app: > > <form action="${save_picture_url}" method="POST" enctype="multipart/ > form-data"> > <input type="file" name="profile_picture" value=""/><br/> > <input type="hidden" name="csrf_token" value="${csrf_token}"/> > <input type="submit" value="save picture"/> > </form> > > the request.POST['profile_picture'] is an empty string. When I move > the position of the csrf_token field like this: > > <form action="${save_picture_url}" method="POST" enctype="multipart/ > form-data"> > <input type="hidden" name="csrf_token" value="${csrf_token}"/> > <input type="file" name="profile_picture" value=""/><br/> > <input type="submit" value="save picture"/> > </form> > > Then request.POST['profile_picture'] is a FieldStorage object as > expected. > > Craig -- You received this message because you are subscribed to the Google Groups "pylons-devel" group. To post to this group, send email to pylons-devel@googlegroups.com. To unsubscribe from this group, send email to pylons-devel+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/pylons-devel?hl=en.