Notfound error while downloading a file while trying to download it with Laravel 8

Asked

Viewed 16 times

-1

I’m really not understanding, the links work the files exist but it gives a Filenotfoundexception when I try to download using the Internet with vuejs

File not found at path: C:/Users/g****/Documents/GitHub/*****/storage/app/public/covers/mtiCIcZTDyu945s1c2JJuZ5xF9SvHAtTegfJJF7d.xlsx

php:

        $file2 = Documentos::where('processo_id', '=', $id)->first()->path;
        return Storage::download(storage_path('app/public/'.$file2,'public'));

vuejs:

             <inertia-link
                :href="route('download', { id: doc.processo_id })"
                class="text-gray-900"
                >Baixar
              </inertia-link>

I already checked the path and if file exists:

inserir a descrição da imagem aqui

I don’t know what else to do Someone can give me light?

  • The archive mtiCIcZTDyu945s1c2JJuZ5xF9SvHAtTegfJJF7d.xlsx does not exist in your folder, see image.

  • it exists only q I took the wrong print F

  • Then it gets complicated, right...

  • kkk dsclp men are there

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.