Forums

Accepting only images in file upload

harlandraka 19 Jan, 2013
Hi all!

I was wondering if there is a way to allow users to only upload images in a form, how do i do it?

Thank you!
GreyHead 22 Jan, 2013
Hi harlandraka,

I'm not sure that I understand your question:-(

You can have a form with just a file upload element and a submit button; and you can limit the types of file in the Upload Files action.

Bob
harlandraka 22 Jan, 2013
Hi Bob

i mean that i noticed that in the file upload preferences, you can set the accepted file extensions, but the MIME type is not being checked, so if i allow users to upload "png-gif-jpg", user can rename "myfile.pdf" to "myfile.jpg" and it is being uploaded even if it isn't an image... Did i explain the problem correctly?

Alex
GreyHead 22 Jan, 2013
Hi Alex,

you are correct, all that is checked is the suffix.

Bob
This topic is locked and no more replies can be posted.