Skip to Content Skip to Menu

Field stripping out slashes from file upload location

  • wintercorn
  • wintercorn
  • OFFLINE
  • Posts: 108
  • Thanks: 13
  • Karma: 1
6 days 9 hours ago #340352 by wintercorn
I'm posting to a CB field from RSFormPro. The actual data is being stored correctly in the CB field but when I try to link to it or display it it either links to the profile edit (which I don't want and it doesn't work) or the full path is shown without any slashes which makes it unusable.

Eg.

Upload a file named joomlapolis.pdf to the RSForm uploads directory at components/com_rsform/uploads/ via a form

The full path should be:

domain.com/components/com_rsform/uploads/joomlapolis.pdf

But it displays the following as the text:

httpsdomain.comcomponentscom_rsformuploadsjoomlapolis.pdf

and the actual url is the profile edit

domain.com/component/comprofiler/fieldclass?field=cb_upgradefile&function=download&user=277&reason=profile

The correct data is in the CB field in the database so it's just the output which is doing this.

Any idea whay and how to fix?

Thanks

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48855
  • Thanks: 8347
  • Karma: 1449
6 days 8 hours ago #340353 by krileon
What type of field are you pushing that to? File fieldtypes don't accept URLs for values. They just accept filename and their storage always expects the file to be in the below directory.

/images/comprofiler/plug_cbfilefield/user_id_here/file_here


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.

  • wintercorn
  • wintercorn
  • OFFLINE
  • Posts: 108
  • Thanks: 13
  • Karma: 1
6 days 5 hours ago #340355 by wintercorn
Sorry, my fault. It didn't need to be a CB file field, just text. I have now changed it and it works fine.
The following user(s) said Thank You: krileon

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

Moderators: beatnantkrileon
Powered by Kunena Forum