May I know the original purpose of unlink function inside FileAdder.php ? #2805
Unanswered
kkkelvinkk
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi Team,
As I encounter some issue that Laravel + symfony tries to interact with original uploaded file under /tmp, and then it raises an error. If I comment out unlink($fileAdder->pathToFile); inside "spatie/laravel-medialibrary/src/MediaCollections/FileAdder.php", the error will disappeared because Laravel + symfony successfully interact with the original file inside /tmp.
Can anyone suggest original purpose of unlink function inside FileAdder.php ? Or this only intended to remove the /tmp file ? Thanks a lot!!
Beta Was this translation helpful? Give feedback.
All reactions