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

FilesUploaded event is triggered even when uploading a file with an invalid format #388

Open
mhgolij opened this issue Jul 6, 2024 · 0 comments

Comments

@mhgolij
Copy link

mhgolij commented Jul 6, 2024

Description:
I have encountered an issue where the FilesUploaded event is still triggered even if an attempt is made to upload a file with an invalid format. Although the file is not uploaded, the event is incorrectly fired.

Steps to Reproduce:

Configure the package with specific allowed file formats in the config file.
Attempt to upload a file with an invalid format that is not allowed by the configuration.
Observe that the file is not uploaded, but the FilesUploaded event is triggered.

Expected Behavior:
The FilesUploaded event should only be triggered when a file is uploaded successfully with a valid format. If the file format is invalid and the upload fails, the event should not be triggered.

Environment:

Laravel Version: 10
Package Version: 3.0
PHP Version:8.2
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