Skip to Content Skip to Menu

Files and Video upload

  • mk3
  • mk3
  • OFFLINE
  • Posts: 137
  • Thanks: 2
  • Karma: -1
8 years 3 weeks ago - 8 years 3 weeks ago #289647 by mk3
Replied by mk3 on topic Files and Video upload
Ok. I understand.
And what if I already have 1000 users that uploaded photos on the registration page by the Image fields, and now I want to move their photos in their gallery - how can I easily do that?
Last edit: 8 years 3 weeks ago by mk3.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48721
  • Thanks: 8320
  • Karma: 1447
8 years 3 weeks ago #289670 by krileon
Replied by krileon on topic Files and Video upload
Can't be easily done. You'd basically have to move them 1 by 1 as each would need the appropriate CB Gallery database entry and the files moved to the appropriate locations. CB Gallery stores files as follows.

/images/comprofiler/plug_cbgallery/USER_ID/TYPE

So for example you'd have the below structure for photos.

/images/comprofiler/plug_cbgallery/42/photos

The structure is only created when something is uploaded so you'd have to create the structure manually when moving the files. This is just the storage though as the database entries still must be created.


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