Commit dc6ba1a
committed
minor symfony#9079 preUpdate Event Listener On Uploaded Imagery (matt9mg)
This PR was submitted for the 4.0 branch but it was squashed and merged into the 2.8 branch instead (closes symfony#9079).
Discussion
----------
preUpdate Event Listener On Uploaded Imagery
I've noticed a scenario (a bit of an edge case when uploading imagery).
If you have an entity (say a brochure) but you can give it a title and an image and the image title can be updated without the image being updated (the file type is not an UploadedFile but a File on save it'll persist the full file path instead of the desired filename. The above is a safety measure to ensure the above.
Commits
-------
a4cc43a preUpdate Event Listener On Uploaded Imagery1 file changed
+5
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
310 | 310 | | |
311 | 311 | | |
312 | 312 | | |
| 313 | + | |
313 | 314 | | |
314 | 315 | | |
315 | 316 | | |
| |||
351 | 352 | | |
352 | 353 | | |
353 | 354 | | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
354 | 359 | | |
355 | 360 | | |
356 | 361 | | |
| |||
0 commit comments