ChronoEngine Forums
Welcome, Guest
Please Login or Register.    Lost Password?
Re:For ALL the people with file upload problems ! (1 viewing) (1) Guest
Go to bottom Post Reply Favoured: 0
TOPIC: Re:For ALL the people with file upload problems !
#7229
admin (Admin)
Admin
Posts: 1570
graphgraph
User Online Now Click here to see the profile of this user
Re:SOLVED:For ALL the people with file upload problem 3 Months ago Karma: 22  
Hi Vermillion,

And I guess too that you don't get the file attached at the email ? do you ? did you add the enctype="multipart/form-data" to the form tag attachment field ?

Thanks again Actor

Max
 
Report to moderator   Logged Logged  
 
ChronoForms Developer Thanks for using ChronoForms.
If you have any problems with ChronoForms please tell us.
If you like ChronoForms please post a review at Joomla.org
  The administrator has disabled public write access.
#8240
redrings (User)
Fresh Boarder
Posts: 3
graphgraph
User Offline Click here to see the profile of this user
Re:For ALL the people with file upload problems ! 1 Month, 3 Weeks ago Karma: 0  
Hello,

I am using Joomla 1.5 version of chronoforms and I can't get file uploads to work.

I have checked in the chronoforms.php and the fileperms is commented out:
Code:

function handle_uploaded_files($uploadedfile, $filename, $limits = TRUE, $directory = FALSE) { //global $mosConfig_absolute_path, $mosConfig_fileperms; //$fileperms = "0644"; /*if ( strlen($mosConfig_fileperms) > 0 ) { $fileperms = octdec($mosConfig_fileperms); }*/ $uploaded_files = ""; $upload_path = JPATH_SITE.'/components/com_chronocontact/upload/';
 
Report to moderator   Logged Logged  
 
Last Edit: 2008/05/11 13:28 By GreyHead. Reason: added code tags
  The administrator has disabled public write access.
#8241
GreyHead (Admin)
Admin
Posts: 2809
graph
User Offline Click here to see the profile of this user
Re:For ALL the people with file upload problems ! 1 Month, 3 Weeks ago Karma: 59  
Hi redrings,

Have you checked this FAQ??

Bob
 
Report to moderator   Logged Logged  
 
Bob Janes
info at greyhead.net
ChronoForms Support If you like ChronoForms please vote or post a review at Joomla.org
  The administrator has disabled public write access.
#8242
redrings (User)
Fresh Boarder
Posts: 3
graphgraph
User Offline Click here to see the profile of this user
Re:For ALL the people with file upload problems ! 1 Month, 3 Weeks ago Karma: 0  
Thanks! I was missing the Form Tag Attachment.

One thing though - I would like for the images to show up in the email instead of just attachments. I have tried using the following in my custom email:

<img src="<mysite>/components/com_chronocontact/upload{image1}"></img>

However, it appears that this passes in the original image name instead of the name of the image after the date is appended to it. Is there a {keyword} I can use in the custom email to get the name of the uploaded image?

Thanks!
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#8269
GreyHead (Admin)
Admin
Posts: 2809
graph
User Offline Click here to see the profile of this user
Re:For ALL the people with file upload problems ! 1 Month, 3 Weeks ago Karma: 59  
Hi redrings,

Try this snippet (replacing field_name with the name of your upload field):
Code:

<?php global $mosConfig_live_site; $file = basename($attachments['field_name']); $upload_path = $mosConfig_live_site.'/components/com_chronocontact/upload/'; ?> <img src="<?php echo $upload_path.$file; ?>"></img>
Bob Later: added the 'global' line to fix the problem reported in the next post.
 
Report to moderator   Logged Logged  
 
Last Edit: 2008/05/14 06:01 By GreyHead.
 
Bob Janes
info at greyhead.net
ChronoForms Support If you like ChronoForms please vote or post a review at Joomla.org
  The administrator has disabled public write access.
#8351
redrings (User)
Fresh Boarder
Posts: 3
graphgraph
User Offline Click here to see the profile of this user
Re:For ALL the people with file upload problems ! 1 Month, 3 Weeks ago Karma: 0  
Thanks GreyHead! This worked perfectly, except I had to replace $mosConfig_live_site. with my actual site name. For some reason the variable doesn't seem to pass to the email (I was getting this in the email source: <img src="/components/com_chronocontact/upload/20080513184023_Creek.jpg" alt="test" _base_href="JURI::base()/">

Anyway - thanks! You're the best!
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
Go to top Post Reply
Powered by FireBoardget the latest posts directly to your desktop


equalheight If you have any questions you can post to our forums and we will be glad to help ASAP

Members Login






Lost Password?
No account yet? Register

2CheckOut.com Inc. (Ohio, USA) is an authorized retailer for
goods and services provided by ChronoEngine.com

ChronoForms License

equalheightTo be able to continue working at this component we decided to get a small profit out of it but at the same time don't force everybody to pay in order to use this great component.

 

 From version 1.5 and up a link at the bottom of everyform created will be placed, saying "joomla professional work", the link will be to us here htttp://www.chronoengine.com, its illegal to remove this link from the source code unless you have a license,

so the license is very simply for the same ChronoForms component without a link, thats all!

This License is for 5 different websites ONLY. 

 

 However, in order to allow everybody to still use the component and even get out of this, the link is inside a div with class : chronoform , use this to hide the link by using different colors or whatever if you really can't pay, but of course the link is still exists at your page source.

 

The license is ONLY 25$ can be bought here :

 

Thank you!

 

ChronoEngine.com Team 

Joomla Templates and Joomla Tutorials