Upload problem...

rava 27 Aug, 2008
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:

<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?
rava 27 Aug, 2008
Thanks for the answer!
I read and i've done that changes that are indicated in the FAQ, but seems that the "enctype='multipart/form-data" field, makes some problems with the graphic interface. Without it, the interface is good. With it, this is the interface:

What's wrong?

Upload problem... image 1
GreyHead 27 Aug, 2008
Hi rava,

I don't understand that - maybe Max can help. I'll check on my test site as soon as I can.

Bob
manjula 27 Aug, 2008
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....
Max_admin 27 Aug, 2008
Hi rava, the old mistake, you forgot the end quote: it should be like this :

enctype='multipart/form-data'
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
rava 28 Aug, 2008
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:
Max_admin 28 Aug, 2008
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
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
rava 28 Aug, 2008
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!
Max_admin 28 Aug, 2008
Hi rava, which Chronoforms version do you have ?
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
rava 29 Aug, 2008
Hi Max!

I have the version 2.5 RC 3.1 for Joomla 1.5
Max_admin 29 Aug, 2008
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 ?
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
rava 29 Aug, 2008
Ok.

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.
Max_admin 29 Aug, 2008
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
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
rava 01 Sep, 2008
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...
Max_admin 01 Sep, 2008
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
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
This topic is locked and no more replies can be posted.

VPS & Email Hosting 20% discount
hostinger