0

Why postman form-data methode return empty request when uploading file to laravel ?

Hello, I trying to send an image to laravel server using postman form-data but the image does not exist in the request and the request is totally empty

this is my controller :

enter image description here

i'm totally blocked here !!

2
  • 1
    Show your postman request Commented Sep 13, 2020 at 15:58
  • 1
    Check dd($request->all()); Commented Sep 13, 2020 at 16:27

2 Answers 2

1

send the request as such :

enter image description here

And it will work

Sign up to request clarification or add additional context in comments.

Comments

0

Problem solved, I was using PUT method then i replace it with POST and it did work perfectlly

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.