Skip to Content Skip to Menu

🕒 Save Time and Effort with CB Editor Assistant: Effortlessly create and refine content in Joomla 3, 4, & 5.
🎁 Limited Offer: Enjoy a 5-day FREE trial and save up to 30% afterward!

Field type "File" losing data randomly

  • ialearn
  • ialearn
  • ONLINE
  • Posts: 21
  • Thanks: 2
  • Karma: 0
14 hours 17 minutes ago - 14 hours 15 minutes ago #340016 by ialearn
Good day, I am needing some advise, I am using community builder to capture user data, which we need for courses we offer at our online training company.
I am using the File field to get users to upload required documents that we need such as a copy of their ID and signed privacy policy.

We have noticed that from time to time files just randomly seem to be unavailable. the file name displays under the user profile page but when you click the link to download it you get an error message "This functionality is currently disabled"
When you then check under the cb_fields folder under images on the server you find that this user has no folder even though the user did upload the documents.

Please see attached screenshots of the User profile field showing that files have been uploaded, I have also attached a screen print of the error. Also attached is a screen print showing the user ID and a print from the cb_fields folder where you can see the folder does not exist.
Attachments:
Last edit: 14 hours 15 minutes ago by ialearn. Reason: Added additional screen print

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48700
  • Thanks: 8317
  • Karma: 1447
7 hours 30 minutes ago #340019 by krileon
Replied by krileon on topic Field type "File" losing data randomly
More than likely what's happening is a routing issue and not data loss. That error outputs on pages unrelated to file fields. So what I suspect is happening is a Joomla menu issue causing routing problems. Please be sure you have a public and published Joomla menu item to CBs profile page. This menu item doesn't need to be visible, but it still must exist and must be public and published.

The only way a file field can delete a file is if it was explicitly told to from the dropdown, if they uploaded another file, or if they attempted to upload again and the user edit save failed it'll apply a rollback to delete the file. There's no other functionality for deleting files and in short always requires user action.

For testing reference I've an install with file fields filled for over 5 years with no problems. If it's not a routing issue my best guess is some sort of user action triggered the issue or if you've any 3rd party security extensions installed it's possible those deleted the files. How often has this happened?

When you then check under the cb_fields folder under images on the server you find that this user has no folder even though the user did upload the documents.

File fields are stored in the /images/plug_cbfilefield folder. Are you sure you're checking the correct directory?


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