$path = 'uploads/multi/' . Auth::user()->id; Storage::disk('local')->put($path,$fl); почему такая ошибка file_put_contents(/home/e/extremje/china/china/storage/app/uploads/multi/1): failed to open stream: Is a directory 
  • for what is a minus? - Pupsik
  • 2
    Because it is not a question, but a piece of unformatted text that few people want to understand. - RiotBr3aker
  • you open the documentation, well. Here is an example even - Storage::disk('local')->put('file.txt', 'Contents'); Do you see that the file has a name and extension? And before him write the path, what you need. Or create your own disk. - n.osennij
  • Storage :: disk ('public') -> put ($ path. '/'. $ Fl, 'Contents'); when saving the size of the files is not 26kb but 6 bytes and the photo does not open, why? - Pupsik

1 answer 1

Because the $ path you created, points to a directory, and you are trying to write to it like in a file

  • and contents for what? I don't understand this - Pupsik
  • The @Pupsik function file_put_contents writes to a FILE. And the link is generated on a directory. - Anton M