html - FileUploader accept="image/*" validation problem -


i added accept="image/*" attribute file uploader <input type="file" name="imageuploader">.

i select image file in uploader. , try send data server. imageuploader set error , add class="input-validation-error".

why happens?

you should try specifying type in php imageuploader , if still have problems, add each image type seperately e.g.

== "image/jpeg" or "image/png" or "image/gif" 

Comments

Popular posts from this blog

php - What is the difference between $_SERVER['PATH_INFO'] and $_SERVER['ORIG_PATH_INFO']? -

fortran - Function return type mismatch -

queue - mq_receive: message too long -