Upload files
Hi.
I've got a problem
In my form I need that the user upload two files with the maximum size of 3 Mb.
My problem is:
If the user try to upload two files with size more than 3 Mb the form stops, but if only one file is more than 3Mb the form goes one sending an email attaching only the right file and not the file exceeding.
I would like that the form stops the submit also in that case.
What can I do?
Thaks in advance
Claudia
I've got a problem
In my form I need that the user upload two files with the maximum size of 3 Mb.
My problem is:
If the user try to upload two files with size more than 3 Mb the form stops, but if only one file is more than 3Mb the form goes one sending an email attaching only the right file and not the file exceeding.
I would like that the form stops the submit also in that case.
What can I do?
Thaks in advance
Claudia
Hello clacap1975,
I'm not a Chrono professional, but after checking your new post, I think that the following links may help:
How can I upload files under some user's folder
How can I zip uploaded files?
How can I edit uploaded files in a form?
How can I attach uploaded files to an email?
P.S: I'm just an automated service😉
I'm not a Chrono professional, but after checking your new post, I think that the following links may help:
How can I upload files under some user's folder
How can I zip uploaded files?
How can I edit uploaded files in a form?
How can I attach uploaded files to an email?
P.S: I'm just an automated service😉
Hi Claudia,
Do you have an Event Loop action in the pink On Fail box of the Upload Files action?
Bob
Do you have an Event Loop action in the pink On Fail box of the Upload Files action?
Bob
Hi Bob,
yes I' have an Even Loop with the action: Event: Load.
Have I do something in it?
yes I' have an Even Loop with the action: Event: Load.
Have I do something in it?
Hi Claudia,
That sounds correct. I had expected that it would stop the form processing if either of the uploads was bigger than the limit you have set :-(
Please drag a Debugger action into the On Submit event, then submit the form with one file over-size and post the debug results here.
Bob
That sounds correct. I had expected that it would stop the form processing if either of the uploads was bigger than the limit you have set :-(
Please drag a Debugger action into the On Submit event, then submit the form with one file over-size and post the debug results here.
Bob
I have the debug result... now a stupid question... how can I post an image here? ? ? ?
Data Array
Array
(
[chronoform] => Coetus
[event] => submit
[nome] => Claudia Capozi
[annonascita] => 1975
[codicefiscale] => CPZCLD75H52F205U
[indirizzo] => Via Mia
[CAP] => 21047
[citta] => Saronno
[prov] => VA
[cellulare] => 123456789
[email] => Questo indirizzo email è protetto dagli spambots. È necessario abilitare JavaScript per vederlo.
[altrotelefono] =>
[sitoweb] =>
[disciplina] => scultura
[operepresentate] => 1
[Opera1Titolo] => Orazio
[Opera1Descrizione] => Marmo
[Opera1base] => 12
[Opera1alt] => 12
[Opera1prof] => 12
[Opera1Peso] => 12
[Opera1sinossi] =>
[Accettolecondizioni] => 1
[privacy] => 1
[invio] => Invio
[Coetus] =>
[opera1foto2] => 20150316121345_Chrysanthemum.jpg
[ip_address] => 87.15.157.162
[id] => 2
)
Array
(
[opera1foto2] => Array
(
[name] => 20150316121345_Chrysanthemum.jpg
[original_name] => Chrysanthemum.jpg
[path] => /customers/3/4/4/arsdocet.org/httpd.www/components/com_chronoforms5/chronoforms/uploads/Coetus/20150316121345_Chrysanthemum.jpg
[size] => 879394
[link] => http://arsdocet.org/components/com_chronoforms5/chronoforms/uploads/Coetus/20150316121345_Chrysanthemum.jpg
)
)
Errors
Array
(
)
Debug Info
Array
(
[9] => Array
(
[Files Upload] => Array
(
[0] => Upload routine started for file upload by : opera1foto1
[1] => File : opera1foto1 size is over the max limit.
[2] => Upload routine started for file upload by : opera1foto2
[3] => /customers/3/4/4/arsdocet.org/httpd.www/components/com_chronoforms5/chronoforms/uploads/Coetus/20150316121345_Chrysanthemum.jpg has been uploaded successfully.
)
)
[12] => Array
(
[Email] => Array
(
[0] => An email with the details below was sent successfully:
[1] => To:Questo indirizzo email è protetto dagli spambots. È necessario abilitare JavaScript per vederlo., Questo indirizzo email è protetto dagli spambots. È necessario abilitare JavaScript per vederlo.
[2] => Subject:Candidature da arsdocet.org per Coetus 1
[3] => From name:ArsDocet.org
[4] => From email:Questo indirizzo email è protetto dagli spambots. È necessario abilitare JavaScript per vederlo.
[5] => CC:
[6] => BCC:
[7] => Reply name:
[8] => Reply email:Questo indirizzo email è protetto dagli spambots. È necessario abilitare JavaScript per vederlo.
[9] => Attachments:
[10] => Array
(
[0] => /customers/3/4/4/arsdocet.org/httpd.www/components/com_chronoforms5/chronoforms/uploads/Coetus/20150316121345_Chrysanthemum.jpg
)
[11] => Body:
<p>Il Centro Culturale Associazione ArsDocet è lieto di comunicarLe che abbiamo ricevuto la sua candidatura per il 1° Simposio di scultura contemporanea "COETUS" che si svolgerà presso il Museo Civico di Arte Contemporanea a Capua (CE) dal 30 maggio al 14 giugno 2015.</p>
<p>In caso di selezione positiva, verrà contattato direttamente dal nostro staff per le comunicazioni e il suo nominativo verrà segnalato sul sito e sui vari social network dell'associazione.</p>
<p>Di seguito il riepilogo delle informazioni da Lei inviate:</p>
<p>Nome e Cognome: Claudia Capozi</p>
<p>Anno di nascita: 1975 - Codice Fiscale: CPZCLD75H52F205U</p>
<p>Indirizzo di residenza: Via Mia</p>
<p>CAP: 21047 - Città : Saronno - Prov: VA</p>
<p>Cellulare: 123456789 - Email: Questo indirizzo email è protetto dagli spambots. È necessario abilitare JavaScript per vederlo.</p>
<p>Altro telefono: - Sito Web: </p>
<p>Disciplina: scultura</p>
<p>Opere presentate: 1</p>
<p>Opera 1</p>
<p>Titolo: Orazio</p>
<p>Descrizione tecnica, materiali: Marmo</p>
<p>Misure (b x h x p): 12 x 12 x 12 - Peso (Kg): 12</p>
<p>Sinossi: </p>
<p>Foto 1: </p>
<p>Foto 2: 20150316121345_Chrysanthemum.jpg</p>
<p>Opera 2</p>
<p>Titolo: </p>
<p>Descrizione tecnica, materiali: </p>
<p>Misure (b x h x p): x x - Peso (Kg): </p>
<p>Sinossi: </p>
<p>Foto 1: </p>
<p>Foto 2: </p>
<p>Liberatoria - Dichiaro di accettare le condizioni: 1</p>
<p>Privacy - Dichiaro di accettare il trattamento dei miei dati personali: 1</p>
<p>Cordialmente</p>
<p>ArsDocet Lo staff</p><br /><br />IP: 87.15.157.162
)
)
[13] => Array
(
[DB Save] => Array
(
[Queries] => Array
(
[0] => INSERT INTO `arsd_chronoengine_chronoforms_datatable_Coetus` (`nome`, `annonascita`, `codicefiscale`, `indirizzo`, `CAP`, `citta`, `prov`, `cellulare`, `email`, `altrotelefono`, `sitoweb`, `disciplina`, `operepresentate`, `Opera1Titolo`, `Opera1Descrizione`, `Opera1base`, `Opera1alt`, `Opera1prof`, `Opera1Peso`, `Opera1sinossi`, `Accettolecondizioni`, `privacy`, `invio`, `opera1foto2`, `user_id`, `uniq_id`, `created`) values ('Claudia Capozi', '1975', 'CPZCLD75H52F205U', 'Via Mia', '21047', 'Saronno', 'VA', '123456789', 'Questo indirizzo email è protetto dagli spambots. È necessario abilitare JavaScript per vederlo.', '', '', 'scultura', '1', 'Orazio', 'Marmo', '12', '12', '12', '12', '', '1', '1', 'Invio', '20150316121345_Chrysanthemum.jpg', '0', 'c1d91a21319a1911f3e272f6cf58893cdbba5b61', '2015-03-16 12:13:46');
)
)
)
)
Just cut and paste.... as you can see
and then the form form ignore the foto1
[9] => Array
(
[Files Upload] => Array
(
[0] => Upload routine started for file upload by : opera1foto1
[1] => File : opera1foto1 size is over the max limit.
[2] => Upload routine started for file upload by : opera1foto2
and then the form form ignore the foto1
No answers for me? 😟 😟 😟
Hi Bob,
thanks a lot!
Claudia
thanks a lot!
Claudia
Hi Claudia,
Please send me a message using the "Contact us" page to get a patch file for this issue.
Regards,
Max
Please send me a message using the "Contact us" page to get a patch file for this issue.
Regards,
Max
This topic is locked and no more replies can be posted.