PedroFumero
2 months ago
164
2
Laravel

How can I get access to uploaded file?

Posted 2 months ago by PedroFumero

Hello, excuse me, I've uploaded few files to my project, this files are uploaded to: storage/app/public/ folder, I've used this method to do this:

'voucher' => $request->file('voucher')->store('public')

But, how can recover the link file to serve to the user?

I'm trying with: <a href="/{{str_replace('public','storage',$item->voucher)}}">Link</a>

But isn't work, someone can explain me how can I do this please?

Please sign in or create an account to participate in this conversation.