Forum
Members Secure file
Hi
i am having trouble getting the secure files to work
i have created a buckets.php file
<?php
return array(
'sitemanagers' => array(
'web_path' => '/members/downloadsm.php?file=',
'file_path' => '/home2/brandbur/downloads/sitemanagers',
),
'contractors' => array(
'web_path' => '/members/downloadc.php?file=',
'file_path' => '/home2/brandbur/downloads/contractors',
),
);
?>
not sure if you can have both the sitemanagers and contractors the way i have it above.
I created 2 download.php files one for the sitemanagers and one for the contractors
templates
<perch:before>
<div class="members download">
<h2 class="downloads">Site Managers Downloads</h2>
<p> <perch:member id="first_name" /></p>
</perch:before>
<div class="file">
<div class="pn">
<perch:content id="descSM" type="text" label="Project Name" words="5" order="1" help="5 words or less" required="true" title="true"/>
</div>
<perch:repeater id="ProjectFiles" label="Projetc Files">
<perch:before><ul></perch:before>
<li class="sm">
<a href="<perch:content id="file" type="file" label="File" bucket="sitemanagers" />" class="button" target="_blank"><perch:content type="text" id="title" label="File Title" order="2" required="true" title="true" help="site Plan"/></a>
<perch:content id="file" type="file" label="File Name" bucket="sitemanagers" output="size" suppress="true" format="MB" order="3"/>
</li>
<perch:after></ul></perch:after>
</perch:repeater><!-- project files -->
</div><!-- .files -->
<perch:after>
</div><!-- .members downloads -->
</perch:after>
and the same except for the bucket name for contractors.
made sure the downloads folder was 777
No files are being uploaded. can you see any issues.
Regards,
Brett
What happens when you try to upload?
/members/downloadsm.php?file=/training-plan-1.pdf and a blank page
Sorry, is the problem with uploading or downloading?
uploading, no file is being uploaded to the file_path directory
Do you get any errors? Is the folder writable?