Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Determining if an file has been set #113

Open
mrchimp opened this issue Jun 28, 2016 · 1 comment
Open

Determining if an file has been set #113

mrchimp opened this issue Jun 28, 2016 · 1 comment

Comments

@mrchimp
Copy link

mrchimp commented Jun 28, 2016

The only way I've found to do this so far is

if ($my_model->my_file->originalFilename() !== null) {

...which isn't terrible but feels a little hacky. Is there another way I'm supposed to do this?

@matiaslauriti
Copy link

matiaslauriti commented Jul 7, 2017

I am doing the same, it is horrible to do this.

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

No branches or pull requests

2 participants