Muralidharan Posted May 30, 2011 Posted May 30, 2011 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...
Smef Posted May 31, 2011 Posted May 31, 2011 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?
Muralidharan Posted June 1, 2011 Author Posted June 1, 2011 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.
Smef Posted June 1, 2011 Posted June 1, 2011 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.
Muralidharan Posted June 3, 2011 Author Posted June 3, 2011 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.
Recommended Posts
This topic is 4921 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now