Hi everyone! I'm writing from Italy and I'm here because I have a problem with the upload thing in Chrono Forms...so, first of all, thanks for every answer!
I've created a form with Chrono Forms, this is the code:
My aim, is to realize a form that allow the users of my website to upload files on my server. I added fields for the first name and last name of everyone, to identify who' s the files. I also need to recive an e-mail, for every upload, with the data that I just said (not with the file attached, only with the informations).
The form appears correctly in the page, so the graphic part is ok. But, if try to fill the fields and upload my file, I get the e-mail with the data to the address that I indicated (so I think I've setted correctry the e-mail thing in the administration page) but no file is uploaded on the server.
I looked in the directory components/com_chronocontact/upload but there is nothing inside it (only an index.html file). This directory have all permissions for everyone to write and read.
So, what can I do?
I've created a form with Chrono Forms, this is the code:
<B>Nome: </B>
<INPUT TYPE="text" NAME="Nome"><BR><BR>
<B>Cognome: </B>
<INPUT TYPE="text" NAME="Cognome"><BR><BR>
<B>Inserisci il nome del file da inviare: </B>
<INPUT TYPE=FILE NAME="file1"><BR><BR>
<INPUT TYPE="SUBMIT" VALUE="Carica File">
<INPUT TYPE="RESET" VALUE="Annulla">
My aim, is to realize a form that allow the users of my website to upload files on my server. I added fields for the first name and last name of everyone, to identify who' s the files. I also need to recive an e-mail, for every upload, with the data that I just said (not with the file attached, only with the informations).
The form appears correctly in the page, so the graphic part is ok. But, if try to fill the fields and upload my file, I get the e-mail with the data to the address that I indicated (so I think I've setted correctry the e-mail thing in the administration page) but no file is uploaded on the server.
I looked in the directory components/com_chronocontact/upload but there is nothing inside it (only an index.html file). This directory have all permissions for everyone to write and read.
So, what can I do?
Hi rava,
I don't understand that - maybe Max can help. I'll check on my test site as soon as I can.
Bob
I don't understand that - maybe Max can help. I'll check on my test site as soon as I can.
Bob
Hi rava,
I too was facing the same problem. The solution for this is when u open ur form at the backend from
Forms Manager, u'll get File Uploads tab. In this tab, u should set Enable uploads: 'yes' and
Field names & allowed Extensions & sizes(KB) for each: uploadImage:jpg|gif{1000-1}.
If u set these two options correctly, then u can uplaod the files/ images to the server......and also will be sent as attachments to the email-id provided.
Best of Luck!
Bye....
I too was facing the same problem. The solution for this is when u open ur form at the backend from
Forms Manager, u'll get File Uploads tab. In this tab, u should set Enable uploads: 'yes' and
Field names & allowed Extensions & sizes(KB) for each: uploadImage:jpg|gif{1000-1}.
If u set these two options correctly, then u can uplaod the files/ images to the server......and also will be sent as attachments to the email-id provided.
Best of Luck!
Bye....
Hi rava, the old mistake, you forgot the end quote: it should be like this :
enctype='multipart/form-data'
Ok, now all seems to work. The file is on the server! Very good!
Is possible, if I need, to change the folder where the file is saved on the server? (for example: NOT /components/com_chronocontact/upload BUT /uploads)
And, is possible too to not recive the file attached with the confirmation e-mail? Because, in the future, if a user will send a file of something like 50Mb, is a little problem for me!
Thank you so much! :mrgreen:
Is possible, if I need, to change the folder where the file is saved on the server? (for example: NOT /components/com_chronocontact/upload BUT /uploads)
And, is possible too to not recive the file attached with the confirmation e-mail? Because, in the future, if a user will send a file of something like 50Mb, is a little problem for me!
Thank you so much! :mrgreen:
Hi rava, 2 good features but unfortunately not existing, you can search the forums on how to disable attachements with a hack, just answered this 2 days ago I think, you can find the upload path near the end of chronocontact.php too!
Cheers
Max
Cheers
Max
Ok thanks! I changed the path and it works very good! Now I'm looking for the e-mail thing...
Last question 😀
It all works correcty but, after some submissions, if I click on "show saved data", nothing appears in the database. How can I save the submissions in this db?
Thanks so much again!
Last question 😀
It all works correcty but, after some submissions, if I click on "show saved data", nothing appears in the database. How can I save the submissions in this db?
Thanks so much again!
Hi rava, which Chronoforms version do you have ?
ok, show me the form code and the code inside the "auto generated" tab and make sure you have created a table for the form ?
Ok.
This is the form code:
Little problem: the "auto generated" tab is empty!
I have created a table for the form because, is if try to create one, it tells that there is already one table created for the form.
This is the form code:
<h1>Invio Files</h1>
<b>Nome: </b>
<input type="text" name="Nome"><br><br>
<b>Cognome: </b>
<input type="text" name="Cognome"><br><br>
<b>Seleziona Dimensioni della Stampa: </b>
<select name="Dimensioni">
<option value="A4" selected="selected">A4</option>
<option value="A3">A3</option>
<option value="A2">A2</option>
<option value="A1">A1</option>
<option value="A0">A0</option>
<option value="100 X 70">100 X 70</option>
<option value="50 X 70">50 X 70</option>
<option value="Da specificare">Altro (specificare sotto) </option>
</select><br><br>
<b>Inserisci il nome del file da inviare: </b>
<input type="file" name="File"><br><br>
<input type="submit" value="Invia File">
<input type="reset" value="Annulla">
Little problem: the "auto generated" tab is empty!
I have created a table for the form because, is if try to create one, it tells that there is already one table created for the form.
Hi rava,
ok, it seems like you have another table with the same name, so, copy the form through the copy icon at the top and rename the new copy to something else then create a new table for it and retry!
Regards,
Max
ok, it seems like you have another table with the same name, so, copy the form through the copy icon at the top and rename the new copy to something else then create a new table for it and retry!
Regards,
Max
Hi Max,
now it works! Thank you so much!
And if I have to erase a link created with the "menu creator"? I can't find anything that allows me to do that...
now it works! Thank you so much!
And if I have to erase a link created with the "menu creator"? I can't find anything that allows me to do that...
Hi rava,
there was no eraser at earlier versions and the whole feature reported to make issues with some users, I suggest you don't create menu items and if you did then you will need to remove them manually through phpmyadmin!
Regards,
Max
there was no eraser at earlier versions and the whole feature reported to make issues with some users, I suggest you don't create menu items and if you did then you will need to remove them manually through phpmyadmin!
Regards,
Max
This topic is locked and no more replies can be posted.