On Mar 8, 7:27 pm, mdipierro <[email protected]> wrote:
>> ValueError: Invalid boundary in multipart form: ''
> This is a jquery issue. Look into applications/admin/static/
> ajax_edit.js

I see - need to define any old string as boundary, so:
$.ajax({
    type: "POST",
    contentType: 'multipart/form-data;boundary="MyBoundaryString"',
    url: "{{=URL(r=request,c='cr',f='shelter',args=['create'])}}",
    data: { name: "MyShelter", _formname: "cr_shelter" },
    })

Doesn't give me the traceback, but the data isn't saved in the DB.
I'm assuming this is because I don't specify a _formkey?

F
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to