Hi,
I can't find the way to achieve upload directory setting with my form
at Upload Files Event Action, whatever I configure in Upload Path
I have the error "JFolder::create: Infinite loop detected - Couldn't create upload directroy 1" when I make a test
I verified CHMOD, tried to set the website root as target, tried to let the field empty to use default config... No way.
I verified tmp and logs config in J! configuration - they are ok
Using another form editor as a test (CKform) I can edit the upload directory without any problem.
Do you have an idea ?
Thanks
I can't find the way to achieve upload directory setting with my form
at Upload Files Event Action, whatever I configure in Upload Path
I have the error "JFolder::create: Infinite loop detected - Couldn't create upload directroy 1" when I make a test
I verified CHMOD, tried to set the website root as target, tried to let the field empty to use default config... No way.
I verified tmp and logs config in J! configuration - they are ok
Using another form editor as a test (CKform) I can edit the upload directory without any problem.
Do you have an idea ?
Thanks
Hi Repitol,
What are you trying to set as the path? It needs to be a full server path, not just the part in your domain folder.
Bob
What are you trying to set as the path? It needs to be a full server path, not just the part in your domain folder.
Bob
I tried each of the followings
...
my logs and tmp configuration in J! are
/var/www/clients/client1/web60/web/logs
/var/www/clients/client1/web60/web/tmp
I tried also
/logs
/tmp
and
./logs
./tmp
as I saw on several forums it could be a fix.
/var/www/clients/client1/web60/web
/var/www/clients/client1/web60/web/
/var/www/clients/client1/web60/web/uploads/
http://www.mywebsite.com/uploads
/web/
...
my logs and tmp configuration in J! are
/var/www/clients/client1/web60/web/logs
/var/www/clients/client1/web60/web/tmp
I tried also
/logs
/tmp
and
./logs
./tmp
as I saw on several forums it could be a fix.
Hi Repitol,
Please add a Custom Code element in a form and add this code
Bob
Please add a Custom Code element in a form and add this code
<?php
echo '<div>The path is: '.JPATH_SITE.'</div>';
?>
and see what it shows when you load the form.
Bob
result :
The path is: /var/www/clients/client1/web60/web
it looks ok withe the website root path
The path is: /var/www/clients/client1/web60/web
it looks ok withe the website root path
Hi Repitol,
So that should work - you will need to add a / at the end; you should also not save them in the site root so add some other folder(s) to the path e.g. /var/www/clients/client1/web60/web/uploads/ (and possibly remove the slash at the beginning). That should set the folder correctly.
Bob
So that should work - you will need to add a / at the end; you should also not save them in the site root so add some other folder(s) to the path e.g. /var/www/clients/client1/web60/web/uploads/ (and possibly remove the slash at the beginning). That should set the folder correctly.
Bob
Bob,
something goes wrong...
in path I have set "/var/www/clients/client1/web60/web/uploads/" saved and applied
When I test form, custom code still shows : The path is: /var/www/clients/client1/web60/web
but nothing goes into the target directory "uploads" I tried also without / at the end
debug shows :
does it indicates something to you ?
something goes wrong...
in path I have set "/var/www/clients/client1/web60/web/uploads/" saved and applied
When I test form, custom code still shows : The path is: /var/www/clients/client1/web60/web
but nothing goes into the target directory "uploads" I tried also without / at the end
debug shows :
Data Array:
Array
(
[option] => com_chronoforms
[tmpl] => component
[chronoform] => Envoi
[event] => submit
[cf_sid] => 068f5a5c909504963eabfe73ff0c8b39
[Itemid] =>
[envoi_fichier] =>
[input_textarea_15] =>
[email] => myemail (changed for the post)
[mentions] => Oui
[chrono_security_answer] => 2
[ef4f9b07a8379e6d5a88ad9f0e3eb64e] => 1
)
Validation Errors:
Array
(
)
Debug Data
Core Captcha
Passed the answer check!
does it indicates something to you ?
Hi Repitol,
There's no evidence of an upload files action in the Debugger output. Is it enabled? What do you have in the settings?
Bob
There's no evidence of an upload files action in the Debugger output. Is it enabled? What do you have in the settings?
Bob
Hi Bob,
in elements I put a File Upload button (ghost enabled was set by default I let it checked (is that OK ? ))
name and ID : envoi_fichier
in actions I put On Submit
1rst : Check Security Question (works well - Load Security Question is in On Load)
2nd : Upload Files
OnSuccess : Enabled YES
files : jpg-png-gif-tiff-Pdf-doc-docx-zip-rar-gzip
Upload Path : /var/www/clients/client1/web60/web/uploads
Max Size in KB : 12000
min Size : 1
Safe File name : yes
OnFail : Event Loop - Target Event = > On Load
in elements I put a File Upload button (ghost enabled was set by default I let it checked (is that OK ? ))
name and ID : envoi_fichier
in actions I put On Submit
1rst : Check Security Question (works well - Load Security Question is in On Load)
2nd : Upload Files
OnSuccess : Enabled YES
files : jpg-png-gif-tiff-Pdf-doc-docx-zip-rar-gzip
Upload Path : /var/www/clients/client1/web60/web/uploads
Max Size in KB : 12000
min Size : 1
Safe File name : yes
OnFail : Event Loop - Target Event = > On Load
Hi Repitol,
Please check the syntax for the files entry in the Upload Files action - it need to include the input name.
Bob
Please check the syntax for the files entry in the Upload Files action - it need to include the input name.
Bob
YES !!
I did forget that point ! files type list must begin with the input name.
in my case - files: envoi_fichier:jpg-png-gif-tiff-Pdf-doc-docx-zip-rar-gzip
Is there a way now to receive the uploaded file by email ?
Thanks Bob
I did forget that point ! files type list must begin with the input name.
in my case - files: envoi_fichier:jpg-png-gif-tiff-Pdf-doc-docx-zip-rar-gzip
Is there a way now to receive the uploaded file by email ?
Thanks Bob
Hi Repitol,
Yes, add envoi_fichier to the Attachments box in the Email action. (and the Email action must be after the Upload Files action)
Bob
Yes, add envoi_fichier to the Attachments box in the Email action. (and the Email action must be after the Upload Files action)
Bob
Ok fine
I can't delete the debugger action. When I delete it, I loose everything in On Submit actions
is there a way to delete it another way ?
I can't delete the debugger action. When I delete it, I loose everything in On Submit actions
is there a way to delete it another way ?
Hi Repitol,
That should not happen. Try making a copy of the form and see if you can delete it from that.
Bob
That should not happen. Try making a copy of the form and see if you can delete it from that.
Bob
No, same problem
May I give you an admin access by PM if possible to see the point ?
Or tell me how to delete this (it can be through DB table erasing)
Repitol
May I give you an admin access by PM if possible to see the point ?
Or tell me how to delete this (it can be through DB table erasing)
Repitol
Hi Repitol,
Please take a Form Backup using the icon in the Forms Manager and post it here (as a zipped file) or PM or email it to me and I'll take a closer look.
Bob
Please take a Form Backup using the icon in the Forms Manager and post it here (as a zipped file) or PM or email it to me and I'll take a closer look.
Bob
Hi Repitol,
The form backup that you sent me doesn't have a Debugger action installed.
Bob
The form backup that you sent me doesn't have a Debugger action installed.
Bob
??
I made a new backup and replace the old one (same url)
I ensure there's a debugger action at On Submit, I'd like to show you a screenshot !
😲
I made a new backup and replace the old one (same url)
I ensure there's a debugger action at On Submit, I'd like to show you a screenshot !
😲
Hi Repitol,
Sorry, I must have been asleep - I was looking for it at the end :-(
I'll send it back to you without the DeBugger.
Bob
Sorry, I must have been asleep - I was looking for it at the end :-(
I'll send it back to you without the DeBugger.
Bob
Hi Bob,
thanks for the form but when I test it and hit "submit" I'm on a blank page
(I just add the email action after upload action as required)
thanks for the form but when I test it and hit "submit" I'm on a blank page
(I just add the email action after upload action as required)
Hi Reitol,
That's correct, the form has nothing in the On Submit event - I have double checked this time.
Bob
That's correct, the form has nothing in the On Submit event - I have double checked this time.
Bob
Yes ! I noticed that just now.
I have done what expected and the form works now
I just don't receive the email.
the email action is after the upload action but in Upload "on Success", there is Show Thanks Message events
so maybe that is the problem ?
I have done what expected and the form works now
I just don't receive the email.
the email action is after the upload action but in Upload "on Success", there is Show Thanks Message events
so maybe that is the problem ?
This topic is locked and no more replies can be posted.