Skip to Content Skip to Menu

🌟Discover the Joomla AI Plugin that wrote its own story! - CB Editor Assistant 1.1now for Joomla 3, 4 & 5!
✍️ 5-Day Free Trial, then 🎯 save up to 30% with our 🛍️ Intro Offer (First 50 users, ends Dec. 25th)
🌲 Merry Christmas! Great savings on Professional and Developer Memberships! Get 25% off now with code XMAS-2024!

File type field allowed file extension

9 years 10 months ago #259471 by iytworldwide
File type field allowed file extension was created by iytworldwide
Hi Kyle,

Joomla 3.3
CB 1.9.1

Is there way to define file type for upload using "file" type field ? In CB Fields Management I am not able to see this option for field type "File" and "Image" . I am facing issues in registration (partial user creation/registration) when user tries to upload "docx" in "image" field.

Thanks,
Amit

Please Log in or Create an account to join the conversation.

9 years 10 months ago - 9 years 10 months ago #259472 by iytworldwide
Replied by iytworldwide on topic File type field allowed file extension
I need to correct the observation. It is field type "Image" not "File". When on "Image" field user is uploading docx then he is getting server side validation(infact it seem to exception and not SSV error handling) but the same time user got created but he is not aware as on screen he is getting error message. This is an issue. Also I called this as partial user creation as first user is not expected to get created and second the CB triggers are not auto fired on such registered user, so his profile data is partial.

Please guide me fix for this issue.
Last edit: 9 years 10 months ago by iytworldwide.

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 48616
  • Thanks: 8302
  • Karma: 1446
9 years 10 months ago #259491 by krileon
Replied by krileon on topic File type field allowed file extension
CB 1.x does not have browser side file input validation. That's a recent addition to CB 2.x in CB 2.0.6. You'll need to upgrade if you want browser side file input validation. Image fields do not allow any filetype you want. It's for images only. For docx files you need to use the CB File Fieldtype plugin or upgrade to CB 2.x where the file fieldtype is built into CB.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in or Create an account to join the conversation.

9 years 10 months ago #259502 by iytworldwide
Replied by iytworldwide on topic File type field allowed file extension
Hi Kyle,

I really appreciate CB but sometime decision to upgrade to new version takes time.

So you mean if any user by mistake uploads a docx in image field then it is correct to allow partial user creation and it will continue to happen in CB 1.9.1 ?

We have added browser side validation to not allow such file pick other then image extension. it is not a correct fix as docx can be rename to .png and then again same issue will come but still we can reduce number of such mistakes

Warm Regards,
Amit Dangwal

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 48616
  • Thanks: 8302
  • Karma: 1446
9 years 10 months ago #259506 by krileon
Replied by krileon on topic File type field allowed file extension

So you mean if any user by mistake uploads a docx in image field then it is correct to allow partial user creation and it will continue to happen in CB 1.9.1 ?

Yes, that'll continue to happen on CB 1.x. It will not on CB 2.x where the registration would be rejected. In fact on CB 2.x as long as they've a modern browser they won't be able to submit the form at all due to the file input extension and mimetype validation.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in or Create an account to join the conversation.

Moderators: beatnantkrileon
Powered by Kunena Forum