Skip to content

Error when uploading image without storage filter #30

@ccjara

Description

@ccjara

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions