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

Update Validation of MediaAlly.php Trait #75

Merged
merged 2 commits into from
Jun 24, 2024

Conversation

cw-alihyder
Copy link
Contributor

It was giving an error on $request->file I just make it to validate whether the given parameter is actually an instance of the upload file or not.

It was giving an error on `$request->file` I just make it to validate whether the given parameter is actually an instance of the upload file or not.
@unicodeveloper
Copy link
Collaborator

@cw-alihyder What error was it giving?

@cw-alihyder
Copy link
Contributor Author

it's not letting the user go to next keep throwing the Exception even if it's a file Instance.

@unicodeveloper
Copy link
Collaborator

So how does your PR fix it? @cw-alihyder

@cw-alihyder
Copy link
Contributor Author

now my PR fixes this by validating whether the param is actually an instance of UploadedFile or not. If it will not instance of UploadedFile it will throw an exception. On the other hand, file_exist doesn't work with the UploadFile instance.

@joshmanders joshmanders merged commit 7530731 into cloudinary-community:master Jun 24, 2024
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

Successfully merging this pull request may close these issues.

None yet

3 participants