Skip to content

does not validate if the uploaded file is a File (not a base64 content) #29

@RHRiday

Description

@RHRiday

I get this error when I upload a File instead of converting the file into a base64 decoded file.
TypeError: Crazybooot\Base64Validation\Validators\Base64Validator::convertToFile(): Argument #1 ($value) must be of type string, Illuminate\Http\UploadedFile given
even when I add 'string' to the validation rule, it does not check whether it's a base64 content or not. My suggestion is it should check whether the given data is a base64 content first then do other validations.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions