Can't upload image if option "restrict file type" is set when I do post creation
-
What is the exact syntax to put in the field "Allowed file types, (ie png, pdf, zip). Leave empty to allow all"
If I leave the field empty I can upload image or whatever but as soon as I put file extension it says after upload that I can't do it because file type is not allowed. I tried all of these without any success
jpg png pdf zip
jpg,png,pdf,zip
jpg, png, pdf, zip
jpg
Any ideas ?
You can do a test on my community, currently setup with
jpg
only -
Ok guys, solved !!!!
Just went into source file and done some debugging. No luck I had, in fact type we need to put in this field should match I think mime type and this one can be different than file extension.
So if you want to upload .jpg (the tests I've done) you need to put in this box
jpeg
(type) and notjpg
(file extension)
and if you want to allow upload upload of .jpg and .png (file extension is the same than type for this one) you need to comma separated so
jpeg,png
may be changing text above this field would allow users to understand betterI'm now working with the following configuration
jpeg,png,gif
works like a charm