thanks for the help, i found request.POST['fichier'].file
Le jeudi 18 juillet 2019 03:53:12 UTC-4, Steve Piercy a écrit : > > On 7/17/19 at 5:15 PM, [email protected] <javascript:> 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/67d5b47b-6b77-41ec-86b3-d49ae0581640%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
