Skip to content
This repository has been archived by the owner on Jun 12, 2024. It is now read-only.

How to get file name #414

Open
izac1 opened this issue Aug 20, 2017 · 1 comment
Open

How to get file name #414

izac1 opened this issue Aug 20, 2017 · 1 comment

Comments

@izac1
Copy link

izac1 commented Aug 20, 2017

I need to get to get file name when i upload file , to get hash this file i try get:
$edit->add('name','Webm','file') ->rule('mimes:webm') ->move('uploads/webm/') ->file(function($file){ exit(var_dump($file->filename)); });

but protected varible , and dont have any func to get file name

@kubk
Copy link

kubk commented Aug 26, 2017

Laravel uses Symfony's UploadedFile. The available methods are listed here: http://api.symfony.com/3.0/Symfony/Component/HttpFoundation/File/UploadedFile.html

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants