Skip to Content Skip to Menu

[CB_Gallery] Rerun media type detection

3 weeks 10 hours ago #340603 by huguesmarcil
[CB_Gallery] Rerun media type detection was created by huguesmarcil
Hello Krileon,
I hope you are well!

I have a question regarding the media type selection.
On my website, there are two ways to upload a file:
  • Via the Community builder gallery
  • Via the Community builder registration API
I have noticed that for the first option, everything works.
But for the second (Community builder registration API), when a user creates an account and attaches a file in the same process, the media type is not detected.
This means that the file in the gallery has its name without the extension.
This is a problem because when a file has no extension, there is no “download” button for it in the CB_gallery front-end.

Can you help?
Thank you very much,

Hugues
Attachments:

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

  • beat
  • beat
  • ONLINE
  • Posts: 2180
  • Thanks: 465
  • Karma: 352
2 weeks 5 days ago #340607 by beat
Replied by beat on topic [CB_Gallery] Rerun media type detection
Hi Hugues,

Not sure what you mean by "registration API" ?

I'm not able to reproduce: When I try uploading a file without valid extension I get an error (see attachment, taken from our demo website by making the canvas field displayed on registration).

 

Beat - Community Builder Team Member

Before posting on forums: Read FAQ thoroughly -- Help us spend more time coding by helping others in this forum, many thanks :)
CB links: Our membership - CBSubs - Templates - Hosting - Forge - Send me a Private Message (PM) only for private/confidential info
Attachments:

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

2 weeks 4 days ago #340608 by huguesmarcil
Replied by huguesmarcil on topic [CB_Gallery] Rerun media type detection
Hello,
We are using the community Builder Registration API to write the uploaded filepaths on the user profile in combination with autoaction to create the Gallery Folder + Files.
Could you just explain what are the rules for the file media upload system to determine whether the file will be downloadable or not?
Thank you

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 49007
  • Thanks: 8374
  • Karma: 1455
2 weeks 2 days ago #340623 by krileon
Replied by krileon on topic [CB_Gallery] Rerun media type detection
I can't advise you on paid products without an active subscription. I'm guessing there's an implementation detail with your registration usage where you're generating the CB Gallery items that isn't working quite right.


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