I added the attribute accept="image/*" to the file loader <input type="file" name="imageUploader"> .
accept="image/*"
<input type="file" name="imageUploader">
I select any image file in the bootloader. And try sending data to the server. But imageUploader fixed the error and will add class="input-validation-error" .
class="input-validation-error"
Why is this happening?
you should try to specify the php type for the image downloader, and if you still have problems, add each image type separately, for example.
== "image/jpeg" or "image/png" or "image/gif"
Source: https://habr.com/ru/post/1347544/More articles:LINQ to Entities Error Using SequenceEqual Enumerated Method - linqStreamWriter and Samba2 (SMB2) - c #Do you know any free social media software? - javaC ++ copy constructor - a small but important difference - c ++How to hide the public key on Android? - javaNokigiri vs Goliath ... or can they get along? - multithreadingCan someone explain this paragraph of an existing standard C ++ 0x draft? - c ++Validating a schema using DocumentBuilder - javaLess time: rewriting or converting an application from VB5 to C # - c #Can't set FLAG_ACTIVITY_SINGLE_TOP and FLAG_ACTIVITY_CLEAR_TOP in the same intent? - androidAll Articles