How get form data in my controller


#1

Hi, i am brasilian sorry for my english kkk.

How do I access the “form data” on my controller, i am usage a resource controller?
I did not find anything in the documentation, what I saw was just “request.file ()” but it is not working

thank you!


#2

Hey @pedrosoares! :wave:

Here’s what you want http://adonisjs.com/docs/4.0/request#_methods


#3

Hmmmm, but this not worling for me. Adonis dont capture data from request methods :confused:
I am pass FormData by http protocol, if i pass payload adonis capture normally.


#4

I need get a image by http post, i am using form data to send.

i cant work this with adonis, he cant access the data

how access this form data kkkk, i cant


#5

I saw that you are using 3.2. I’ll recommend you to update to 4.0.

Check the doc for 3.2 http://adonisjs.com/docs/3.2/request#_all


Read form data in controller