On 7/17/19 at 5:15 PM, [email protected] pronounced:

Hi, I use a FormData javascript object, to send a file with a POST, how to access the FormData object in the pyramid request object.

You can access POST variables as if it is a Python dictionary.

    request.POST.items()

https://docs.python.org/3/library/stdtypes.html#mapping-types-dict
https://docs.pylonsproject.org/projects/pyramid/en/latest/api/request.html#pyramid.request.Request.POST

See also the IMultiDict interface, which extends the Python dictionary interface.

https://docs.pylonsproject.org/projects/pyramid/en/latest/api/interfaces.html#pyramid.interfaces.IMultiDict

--steve

------------------------
Steve Piercy, Eugene, OR

--
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/pylons-discuss/r480Ps-10126i-FB259273F45640218C0969AB0705BC73%40Steves-iMac.local.
For more options, visit https://groups.google.com/d/optout.

Reply via email to