May 30, 201114 yr Hi, I need to upload the image file. That should be *.png, *.gif, *.jpg. Other than these extensions should not upload and shown the alert box. Please anyone help me. Thanks in advance...
May 31, 201114 yr I'm not following what you're trying to do and what isn't working for you. Could you re-write your question? Is this a question about SuperContainer?
June 1, 201114 yr Author I'm not following what you're trying to do and what isn't working for you. Could you re-write your question? Is this a question about SuperContainer? Hi Smef, I have a Container field. It is purpose of upload the images. In this Container field must allow *.jpg, *.gif, *.png formats. Other than these extension like *.jpeg, *.pdf, *.doc files(Because Container field can allow all these formats of files)should not allowed in the container field. Because i need only images in that container field. It's like Validate the file format. I'm not aware of Super Container field. Is it possible in Super Container field.
June 1, 201114 yr You can write a script using the companion plugin to control uploads and check a filename for .jpg, .gif, or .png and prevent users from uploading files without these extensions, but keep in mind that it is possible to rename an image file to not have one of those extensions, and it is possible to rename a non-image file to have one of those extensions.
June 3, 201114 yr Author You can write a script using the companion plugin to control uploads and check a filename for .jpg, .gif, or .png and prevent users from uploading files without these extensions, but keep in mind that it is possible to rename an image file to not have one of those extensions, and it is possible to rename a non-image file to have one of those extensions. Thanks Smef.
Create an account or sign in to comment