nazar1987's avatar

[L5] update upload file problem

hi every one i have problem when try update upload file i used Route::put and in server side can't read file

0 likes
5 replies
nazar1987's avatar

thanx my dear @mstnorris Input::hasFile('img') not detect upload file i think the file not uploaded and i user Route::put('')

bestmomo's avatar
Level 52

Did you set enctype="multipart/form-data" in your form ?

mstnorris's avatar

Please provide the following:

  1. Your routes.php file.
  2. The URL you're hitting.
  3. The Controller that responds to that route
  4. The View that contains the form.
  5. What @bestmomo said ;)
  6. Anything else such as FormRequests etc
1 like
mikevrind's avatar

I suspect you are using the wrong enctype in the form you are ussing. Like @bestmomo suggested, make sure you have enctype="multipart/form-data" set in your form.

Please or to participate in this conversation.