Forums

File upload not working

fredtep 15 Dec, 2015
Hello,

I am trying to get the upload function to work with no result sor far. I'm using the default folder. Inside, a new folder is created but it remains empty.

1) Debug Data:

==================
Data Array

Array
(
    [option] => com_chronoforms5
    [chronoform] => test
    [event] => submit
    [Nom] => Nom
    [Prénom] => Prénom
    [button2] => Submit
)

Array
(
)

Errors

Array
(
)

Debug Info

Array
(
)



==================

I believe everything is set up properly (I've tried all the forum solutions)
Here is what I get when I add custom code :
$_FILES: Array ( [file5] => Array ( [name] => mod_simplefileuploadJ30.zip [type] => application/zip [tmp_name] => /var/www/xxxxxx/web6/tmp/phpEebnbi [error] => 0 [size] => 530885 ) )

The upload folder has writting permissions and I also tried 777 for it.
I've attached 2Jegs you can see my configuration.


Thanks for having a look
GreyHead 15 Dec, 2015
Hi fredtep,

How do you have the Files Upload action configured?

Please change the name of the Prénom input to Prenom - the é is illegal in an input name.

Bob
fredtep 15 Dec, 2015
Hi Bob,

Thanks for your help.

Here are my settings

Enabled : yes
files config : documents:zip
uplaod path : blank
Max file size : 100000
Min file size : 5
I did not touch the remaining fields
GreyHead 15 Dec, 2015
Hi fredtep,

The debug you posted earlier says that the input is named file5 - so in the files config you need file5:zip

Bob
fredtep 16 Dec, 2015
It's working fine now. Thanks a lot and sorry for that. I should have figured that out myself.
I'm having another problem now. I cannot save the file where I want. I've set up the path using the absolute path : /var/www/xxxxxx/web6/web/images/test
test is 755
Sorry for the bother
fredtep 16 Dec, 2015
My bad, It's just working now.
Sorry again
GreyHead 16 Dec, 2015
Hi fredtep,

Well fixed.

BTW I always recommend that you change the default names and IDs that ChronoForms adds to something that is more meaningful like 'documents' instead of 'file5'.

Bob
This topic is locked and no more replies can be posted.