ChronoEngine Forums
Welcome, Guest
Please Login or Register.    Lost Password?
For ALL the people with file upload problems ! (1 viewing) (1) Guest
Go to bottom Post Reply Favoured: 0
TOPIC: For ALL the people with file upload problems !
#5260
JohnieWalker (User)
Fresh Boarder
Posts: 1
graphgraph
User Offline Click here to see the profile of this user
For ALL the people with file upload problems ! 5 Months ago Karma: 0  
For those who don't wanna read all the text - just scroll down for solution.
A little introducion.
Today I was making a Joomla site for my customer. He requested to add an application from to his site. So, I thought why not to use ChronoForms. Ok downloaded, installed, looked into the manual, did everything. Added a file field, added enctype etc. Trying to submit... Dang, E-mail not sent... OK, I thought... Let's debug this. So I went to chronocontact.php and found a neat little function called
Code:

handle_uploaded_files
in that function there is a var
Code:

$fileperms = "0000";
and then theres is an if statement
Code:

if ( strlen($mosConfig_fileperms) > 0 ) { $fileperms = octdec($mosConfig_fileperms); }
I though ok ... Let's see our $mosConfig_fileperms var in configuration.php . And dang ! It was
Code:

$mosConfig_fileperms = '';
AHA ! Got you ! Basically because of that var the file was uploaded with 0000 CHMOD, that means that only webserver root can do something with it, that means that mosMail function wasn't even able to read this file, hence the "E-mail not send" error, since I dont have any root .. I changed it to 0644 so it became like this
Code:

$mosConfig_fileperms = '0644';
And voila! "E-mail sent!" I'm happy, customer happy, everyone is happy. SOLUTION Short solution for those who don't wanna read all the text. All you need to do, is change $mosConfig_fileperms in your configuration.php to '0644' if it is ''. So it must look like that
Code:

$mosConfig_fileperms = '0644';
P.S Sorry for my English, not a native speaker.<br><br>Post edited by: JohnieWalker, at: 2008/01/30 21:09
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#5267
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 ! 5 Months ago Karma: 59  
Hi JohnieWalker,

Great debug, thank you. I think we can add a check for this into ChronoForms that would write in a default value if the config value is not set.

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.
#5312
brewster (User)
Fresh Boarder
Posts: 13
graphgraph
User Offline Click here to see the profile of this user
Re:For ALL the people with file upload problems ! 5 Months ago Karma: 0  
This sounds like the problem I was having here.

Could that also explain why file upload that also sends an email works on some local servers and not remote because of permissions?<br><br>Post edited by: GreyHead, at: 2008/02/01 23:45
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#5315
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 ! 5 Months ago Karma: 59  
Hi brewster,

Could be, needs a few users to test it out.

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.
#5427
raevana (User)
Fresh Boarder
Posts: 4
graphgraph
User Offline Click here to see the profile of this user
Re:For ALL the people with file upload problems ! 4 Months, 4 Weeks ago Karma: 0  
I thought that this was my problem. The file showed up with 33KB on the website and when I downloaded it was 0 KB.

I followed your instructions, however, when I use 0644 the file is actually flagged as 204 and appends a T at the end of the permissions -w----r-- T. File still 0KB when I download.

I tried changing it to 777 and it flags the file as -wxrw-wt .
File is still 0 KB when I download. I've never seen the t before.

Any ideas?
Thanks in advance for any help you can offer.
Ruth
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#5434
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 ! 4 Months, 4 Weeks ago Karma: 59  
Hi Ruth,

Just to be clear - showing up as 33kb on the website - this is in the Uploads folder so the upload has completed successfully?

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.
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