-
-
Notifications
You must be signed in to change notification settings - Fork 5.2k
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
Fix the "doctrine file uploads" cookbook examples, see symfony/symfony-d... #2120
Fix the "doctrine file uploads" cookbook examples, see symfony/symfony-d... #2120
Conversation
$this->file = $file; | ||
// check if we have an old image path | ||
if (is_file($this->getAbsolutePath())) { | ||
//store the old name to delete after the update |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
a space needed here
Thanks again @wouterj |
@mahmouds you're welcome. You should end short descriptions in PHPdoc comment with a |
Related issue #600 |
When using the id, in |
@winzou thanks for the tip I have just updated the PR. |
Hi Mahmoud! This has been merged in - I think that handling the "delete" is important. As you know, this whole document still needs to be heavily redone, which I've outlined in #2346. Thanks! |
I did a rename on "filenameForRemove" to "temp" as it holds only the extension of the file in the "Using the id as the filename" section but I am ok with any other suggestions.