Uploaded files doesn't work

Heilong 14 Jul, 2008
Hello everyone,

after searching for a while, I fixed some problems on my forms, now i can save data in the database also show them up under the show saved data view.

But on my forms I have 2 fields allowing the user to upload some files, when submitting the form all datas are stored well in the database execpt information about uplaoded files.

I checked under the form tag attachement and everything is ok.

I need some help to fix this problem, I don't understand why information of the uplaoded are not in the database, but the files are uploaded into the upload directory.

I posted the back up, thanks for help [file name=application_form-8a1727d1b92a2c9c9ce40f6447ab7886.cfbak size=110800]http://www.chronoengine.com/images/fbfiles/files/application_form-8a1727d1b92a2c9c9ce40f6447ab7886.cfbak[/file]
Max_admin 14 Jul, 2008
Hi Heilong,

I would post at the same post that I found the solution, I just made a reply there!!!🙂

the new problem is asked many times and replied here on forums please do some search on '$_FILE' and you will find it!

Cheers

Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
Heilong 15 Jul, 2008
Thanks, I found it using this
$database->setQuery( "INSERT INTO #__chronoforms_2 VALUES  (
'' , '".$inum."','". date('Y-m-d')." - ".date("H:i:s")."', '".$_SERVER['REMOTE_ADDR']."' , '".$_FILES['file']['name']."');" );


The name of the file is saved in the database, and displayed.

But I still have a problem, on the show saved data view, I want to add a link on the files then it's possible to open the file by clicking the link.
Max_admin 15 Jul, 2008
Hi,

You can do this but it will need a file hack and the code above changed!! do you have J1.5 ? if so then you can wait for the next release and I will add this feature out of the box!

Cheers

Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
Kinaski 16 Jul, 2008
Hi to all!

This is the first time I'm posting on this forum, but I'm actually using chronoforms for quite a few months, and I think it's great.

What forced me to post this is the problems I have with the uploaded file names, stored in the database.

I'm using the newest chronoform component on Joomla 1.5.3. Firstly I had a problem with storing of the uploaded filenames in the DB. I searched around the forum and actually fund a solution putting this code in the AutoGenerated code:

.$_FILES [$allowed_s2[0]]['name'].


Ok then the file name gets written in the db. But how can I make it to be written with the actual prefix ie. "20080715174352_mypic.jpeg" and not only mypic.jpeg? All of the files dynamicaly gets those prefixes when saved to the server.

Any help on this will be very much appreciated!

Thanks in advance,

Henk
Heilong 16 Jul, 2008
Yes I'm using J1.5.

How about the file hack ? Which file not be hacked and where ?
Kinaski 16 Jul, 2008
Hi again, and sorry for bumping into the thread like that😟

But I really needed help with this issue and I didn't wanted to start a new thread.

Thanks
Max_admin 16 Jul, 2008
Hi Kinaski,

no problems but the issue is that needs both file hacks and Auto generated code changes, and the final solution is really not very reliable, tell me if you are in an urgent need and I will post a solution but if you can wait few days and you have J1.5 then probably you can wait for the new version which will have this ready ?

Cheers

Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
gg4j 16 Jul, 2008
yeah mee too.
I report same error.

last version of CC, last version of J1.5
Max_admin 16 Jul, 2008
Yes, the issue is known, just not implemented and will be there at the new version🙂
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
Kinaski 17 Jul, 2008
Ok if the new version is coming very soon, then I think I can wait a bit.

Thank you!
gg4j 01 Aug, 2008
hi greyhead.

any news for fixes in a new version of CC, which can upload normally files?
(P.s. I found the restyle of your forum very very nice and easier to read, goodlightbulb !)
GreyHead 01 Aug, 2008
Hi gg4,

Max has said that he hopes to get the new release out this weekend - but he's said that before so don't hold your breath.

Best wishes

Bob
Max_admin 02 Aug, 2008
Hi,

Actually the current version can upload files very good!! the new release is on its way, what I have on the todo list :

#1- checking cross browser compatibility, we have a good amount of JS work!
#2- make new Backup/restore functions!
#3- add a file upload progress bar if possible
#4- add a new multi page form feature!

Please note that you will need to remake your form to get it working with the next release, many things are different!

I will keep the last 2 for the next release if I couldn't finish them this weekend!

Cheers

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