Please post all pre-sales questions of all products on this forum

Event Booking - access to files uploaded during re

  • Fred Dinkler
  • Topic Author
  • Offline
  • New Member
  • New Member
More
9 years 2 months ago - 9 years 2 months ago #77600 by Fred Dinkler
Tuan -

First off, great job on the Event Booking component. I've been thinking I would have to build one myself, and I don't have the time.

One question - registrants will be uploading a number of files during registration. And there will be multiple events possible per registrant. What is the file storage structure underneath? I need to programatically sweep all files per event into a single zip file per registrant/event. will the file storage structure support that?
Regards,
Fred Dinkler
Last edit: 9 years 2 months ago by Fred Dinkler.

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

More
9 years 2 months ago #77608 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Event Booking - access to files uploaded during re
Hi Fred

Unfortunately, the files are not stored in that structure. All the files are stored in the same folder (media/com_eventbooking/files)

So if you want to program to download all files of an event, you will need to read data from the #__eb_field_values table, get all files which registrants of an event uploaded, and zip it into a single zip file... It is do-able, just takes more works than your estimation

Tuan

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

  • Fred Dinkler
  • Topic Author
  • Offline
  • New Member
  • New Member
More
9 years 2 months ago #77659 by Fred Dinkler
Replied by Fred Dinkler on topic Event Booking - access to files uploaded during re
Tuan - Thanks for the answer.
So, if the files aren't segregated by event, when a registrant uploads the same file for more than one event registration, how do you keep the file names kept unique so one doesn't overwrite the other?
Regards,
Fred

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

More
9 years 2 months ago #77685 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Event Booking - access to files uploaded during re
Hi Fred

We will add random string in case the uploaded file has same name with an existing file

Tuan

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

Moderators: Tuan Pham NgocGiang Dinh TruongMr. Dam