+ 1

how to set fixed value of image in order to get as input from user using javascript so user can only add fixed value's image..?

Conditional statement requires if yes then tell me how can i write code for that i don't have any idea how to start...!!

26th Apr 2022, 7:12 AM
Davinder Kumar
Davinder Kumar - avatar
4 Respostas
+ 1
I didn't clearly get that "fixed value" part ... By "fixed value" did you mean to limit the physical file size, or the image file dimension (width & height) of the file uploaded or what?
26th Apr 2022, 7:37 AM
Ipang
+ 1
Ipang yes you got what i meant to say pls tell me ??
26th Apr 2022, 7:49 AM
Davinder Kumar
Davinder Kumar - avatar
+ 1
suppose we just want user to upload image ( below or equal size of 500px width and 500px height) if user tries to upload image above it then they should be denied...! hope you get it
26th Apr 2022, 7:55 AM
Davinder Kumar
Davinder Kumar - avatar
0
No bro, still unclear ... Limit physical file size or dimension (width & height - in pixels) Please add this detail in post Description. I'm only to confirm that doubt ...
26th Apr 2022, 7:51 AM
Ipang