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

Error when uploading image without storage filter #30

Open
ccjara opened this issue Mar 31, 2016 · 0 comments
Open

Error when uploading image without storage filter #30

ccjara opened this issue Mar 31, 2016 · 0 comments

Comments

@ccjara
Copy link

ccjara commented Mar 31, 2016

I get the following PHP warning when uploading an image without a storage filter specified (set to false in config):
Warning: unlink(./uploads/profile-images/58): No such file or directory in ./vendor/hrevert/ht-profile-image/src/Service/ProfileImageService.php on line 79

Probably the reason is this:
https://github.com/hrevert/HtProfileImage/blob/master/src/Service/ProfileImageService.php#L68

Here the file is just being moved from the temp directory to the profile image folder, but:
https://github.com/hrevert/HtProfileImage/blob/master/src/Service/ProfileImageService.php#L79

Here the "old" temp file is being deleted regardless although it just got moved out of there.

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

1 participant