Where I found files from registration form?

More
10 years 6 months ago #69153 by Birk
HI!

Can somebody help me and tell me where I find the files which were uploaded with registration of each participant?

Can I have access to it from the backend?

Thank you!

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

More
10 years 6 months ago #69167 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Where I found files from registration form?
Hi Birk

Yes. You can go to backend of your site, go to Events Booking -> Registrants, click on registration record to edit and see the attachment

Regards,

Tuan

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

More
10 years 6 months ago #69175 by Birk
Do you mean clicking on "first name" to see details of the registered participant? There I see "current file" next to the field for the required field "uploading file" but when I download this, I get the invoice.
(I cannot see "registration record" anywhere)
An error or my fault?

I want to download the files which the participant uploaded during registration process. And downloading all files from all participant at the same time would make life easier, too ;)

Thank you!

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

More
10 years 6 months ago #69176 by Birk
Ok... now with creating a new event, it is fixed and i can download the correct uploaded file. Thanks!

But the other question is whether I can download all files, uploaded by the registered participants, at once? Or do I have to download one by one?

Thank you for helping me ;)

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

More
10 years 6 months ago #69194 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Where I found files from registration form?
All the files are stored in media/com_eventbooking/files folder of your site. So you can access to that folder (via cpanel or FTP) to download all uploaded files

Tuan

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

More
10 years 6 months ago #69275 by Birk
Ok, I was aware of the FTP solution but thought about an possible option in the event booking tool.

I will manage it with FTP access. Thank you!

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

More
10 years 6 months ago #69281 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Where I found files from registration form?
OK Birk.

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

More
10 years 6 months ago - 10 years 6 months ago #69293 by James Riley
Replied by James Riley on topic Where I found files from registration form?
This isn't a backend solution, but...
As a way to make the files front-end accessible, you could drop a simple "list folder contents" php script into the /media /com_eventbooking/files folder. The script prompts for a password to prevent unauthorized access.

Save as index.php
Code:
<?PHP /*********** SIMPLE DIRECTORY LISTING SCRIPT *************************/ /*********** USER VARIABLES ***************/ // directory to list contents of. Enter "." for current folder $directory = "."; // Sort by 0=filename 1=type 2=size 3=modified-date $sortby = 3; // Your Timezone. List of timezones at http://php.net/manual/en/timezones.php $timezone="America/Regina"; // Date Format (eg: "Y-m-d | H:i:s e"). Format info at http://php.net/manual/en/function.date.php $dateformat = "Y-m-d | H:i:s e"; // password required to access the files. $password = "MyPassword"; /********** CODE (don't make changes below this line unless you know what you're doing) **********************/ date_default_timezone_set($timezone); function getFileList($dir) /* function posted at http://www.the-art-of-web.com/php/dirlist/ */ { // array to hold return value $retval = array(); // add trailing slash if missing if(substr($dir, -1) != "/") $dir .= "/"; // open pointer to directory and read list of files $d = @dir($dir) or die("getFileList: Failed opening directory $dir for reading"); while(false !== ($entry = $d->read())) { // skip hidden files if($entry[0] == ".") continue; if(is_dir("$dir$entry")) { $path_info = pathinfo("$dir$entry"); $retval[] = array( "name" => "$dir$entry", "type" => $path_info['extension'], "size" => filesize("$dir$entry"), "lastmod" => filemtime("$dir$entry") ); } elseif(is_readable("$dir$entry")) { $path_info = pathinfo("$dir$entry"); $retval[] = array( "name" => "$dir$entry", "type" => $path_info['extension'], "size" => filesize("$dir$entry"), "lastmod" => filemtime("$dir$entry") ); } } $d->close(); return $retval; } function sortFile ($dirlist, $sortby){ // Obtain a list of columns foreach ($dirlist as $key => $row) { $name[$key] = $row['name']; $type[$key] = $row['type']; $size[$key] = $row['size']; $lastmod[$key] = $row['lastmod']; } if (($sortby==0) || ($sortby=="")) array_multisort($name, SORT_ASC, SORT_STRING, $dirlist); if ($sortby==1) array_multisort($type, SORT_ASC, SORT_STRING, $dirlist); if ($sortby==2) array_multisort($size, SORT_ASC, SORT_STRING, $dirlist); if ($sortby==3) array_multisort($lastmod, SORT_ASC, SORT_STRING, $dirlist); return $dirlist; } ?> <?PHP if (isset($_POST['password']) && ($password == $_POST['password'])) { $dirlist = getFileList($directory); $dirlist=sortFile($dirlist,$sortby); // output file list in HTML TABLE format echo "<table cellpadding=\"10\">\n"; echo "<thead>\n"; echo "<tr bgcolor=\"#999999\"><th>Name</th><th>Type</th><th>Size</th><th>Last Modified</th></tr>\n"; echo "</thead>\n"; echo "<tbody>\n"; $rowcounter = 0; foreach($dirlist as $file) { $rowcounter++; $rowcolor =($rowcounter% 2 == 0)?' bgcolor="#CCCCCC"':''; echo "<tr $rowcolor style=\"border:1px solid #000;\">\n"; echo "<td><a href=\"{$file['name']}\">{$file['name']}</a></td>\n"; echo "<td>{$file['type']}</td>\n"; echo "<td>{$file['size']}</td>\n"; echo "<td>",date($dateformat, $file['lastmod']),"</td>\n"; echo "</tr>\n"; } echo "</tbody>\n"; echo "</table>\n\n"; die(); } ?> <h2>Secure Area -::- Password Required to Proceed</h2> <form method="POST" action=""> Password <input type="password" name="password"></input> <input type="submit" name="submit" value="Authenticate"></input> </form> <?php if (isset($_POST['password']) && ($password != $_POST['password'])) { echo '<em style="color:red;">Invalid password. Access denied.</em>'; } ?>

James Riley .: EventBooking user since 2014 ::: JoomDonation user since 2016 :.
.: grfx & web design / IT / AV @ St. Therese Institute of Faith and Mission, Bruno, SK, Canada :.
Last edit: 10 years 6 months ago by James Riley.

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

Moderators: Tuan Pham Ngoc