- Posts: 15
- Thank you received: 0
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
Upload a File/Resource
- tamase
- Topic Author
- Offline
- New Member
Less
More
1 year 5 days ago #241640
by tamase
Upload a File/Resource was created by tamase
How can I activate the Upload File or Resource Feature in the Config file?
I am getting require(conf/config.php): failed to open stream: No such file or directory
Can someone please post an example like this, but this simply does not work for me:
'config'=>array(
'debug'=>0,
'debugsql'=>0,
'allowedresourcesuploads'=>'7z,aiff,asf,avi,bmp,csv,doc,docx,fla,flv,gif,gz,gzip,ico,jpeg,jpg,mid,mov,mp3,mp4,mpc,mpeg,mpg,ods,odt,pdf,png,ppt,pxd,qt,ram,rar,rm,rmi,rmvb,rtf,sdc,sitd,swf,sxc,sxw,tar,tgz,tif,tiff,txt,vsd,wav,wma,wmv,xls,xlsx,zip,css,js');
thanks,
Tom
I am getting require(conf/config.php): failed to open stream: No such file or directory
Can someone please post an example like this, but this simply does not work for me:
'config'=>array(
'debug'=>0,
'debugsql'=>0,
'allowedresourcesuploads'=>'7z,aiff,asf,avi,bmp,csv,doc,docx,fla,flv,gif,gz,gzip,ico,jpeg,jpg,mid,mov,mp3,mp4,mpc,mpeg,mpg,ods,odt,pdf,png,ppt,pxd,qt,ram,rar,rm,rmi,rmvb,rtf,sdc,sitd,swf,sxc,sxw,tar,tgz,tif,tiff,txt,vsd,wav,wma,wmv,xls,xlsx,zip,css,js');
thanks,
Tom
Please Log in to join the conversation.
- tpartner
- Away
- LimeSurvey Community Team
Less
More
- Posts: 10630
- Thank you received: 3696
1 year 5 days ago #241643
by tpartner
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Replied by tpartner on topic Upload a File/Resource
It looks like you have an unnecessary closing bracket and semi-colon.
Code:
'config'=>array( 'debug'=>0, 'debugsql'=>0, 'allowedresourcesuploads'=>'7z,aiff,asf,avi,bmp,csv,doc,docx,fla,flv,gif,gz,gzip,ico,jpeg,jpg,mid,mov,mp3,mp4,mpc,mpeg,mpg,ods,odt,pdf,png,ppt,pxd,qt,ram,rar,rm,rmi,rmvb,rtf,sdc,sitd,swf,sxc,sxw,tar,tgz,tif,tiff,txt,vsd,wav,wma,wmv,xls,xlsx,zip,css,js', ), 'params'=>array( ...
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Please Log in to join the conversation.
- tamase
- Topic Author
- Offline
- New Member
Less
More
- Posts: 15
- Thank you received: 0
1 year 5 days ago #241644
by tamase
Replied by tamase on topic Upload a File/Resource
thanks I will give it a try
Please Log in to join the conversation.
- tamase
- Topic Author
- Offline
- New Member
Less
More
- Posts: 15
- Thank you received: 0
1 year 5 days ago #241648
by tamase
Replied by tamase on topic Upload a File/Resource
sorry I don´t really get it:
this is the end of the file, but there is no params etc.:
// Use the following config variable to set modified optional settings copied from config-defaults.php
'config'=>array(
// debug: Set this to 1 if you are looking for errors. If you still get no errors after enabling this
// then please check your error-logs - either in your hosting provider admin panel or in some /logs directory
// on your webspace.
// LimeSurvey developers: Set this to 2 to additionally display STRICT PHP error messages and get full access to standard templates
'debug'=>1,
'debugsql'=>0, // Set this to 1 to enanble sql logging, only active when debug = 2
'allowedresourcesuploads'=>'jpg,pdf,jpeg,png',
)
);
/* End of file config.php */
/* Location: ./application/config/config.php
this is the end of the file, but there is no params etc.:
// Use the following config variable to set modified optional settings copied from config-defaults.php
'config'=>array(
// debug: Set this to 1 if you are looking for errors. If you still get no errors after enabling this
// then please check your error-logs - either in your hosting provider admin panel or in some /logs directory
// on your webspace.
// LimeSurvey developers: Set this to 2 to additionally display STRICT PHP error messages and get full access to standard templates
'debug'=>1,
'debugsql'=>0, // Set this to 1 to enanble sql logging, only active when debug = 2
'allowedresourcesuploads'=>'jpg,pdf,jpeg,png',
)
);
/* End of file config.php */
/* Location: ./application/config/config.php
Please Log in to join the conversation.
- tamase
- Topic Author
- Offline
- New Member
Less
More
- Posts: 15
- Thank you received: 0
1 year 5 days ago #241649
by tamase
Replied by tamase on topic Upload a File/Resource
in my opinion it has to work like this:
'config'=>array(
// debug: Set this to 1 if you are looking for errors. If you still get no errors after enabling this
// then please check your error-logs - either in your hosting provider admin panel or in some /logs directory
// on your webspace.
// LimeSurvey developers: Set this to 2 to additionally display STRICT PHP error messages and get full access to standard templates
'debug'=>1,
'debugsql'=>0, // Set this to 1 to enanble sql logging, only active when debug = 2
'allowedresourcesuploads'=>'jpg,pdf,jpeg,png'
)
);
'config'=>array(
// debug: Set this to 1 if you are looking for errors. If you still get no errors after enabling this
// then please check your error-logs - either in your hosting provider admin panel or in some /logs directory
// on your webspace.
// LimeSurvey developers: Set this to 2 to additionally display STRICT PHP error messages and get full access to standard templates
'debug'=>1,
'debugsql'=>0, // Set this to 1 to enanble sql logging, only active when debug = 2
'allowedresourcesuploads'=>'jpg,pdf,jpeg,png'
)
);
Please Log in to join the conversation.
- tpartner
- Away
- LimeSurvey Community Team
Less
More
- Posts: 10630
- Thank you received: 3696
1 year 5 days ago - 1 year 5 days ago #241653
by tpartner
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Replied by tpartner on topic Upload a File/Resource
Well, since you neglected to answer the initial questions about your LimeSurvey version, etc., We have no clue how exactly your config file looks. My example is from version 5.6.10.this is the end of the file, but there is no params etc.:
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Last edit: 1 year 5 days ago by tpartner.
Please Log in to join the conversation.
- tamase
- Topic Author
- Offline
- New Member
Less
More
- Posts: 15
- Thank you received: 0
1 year 5 days ago #241654
by tamase
Replied by tamase on topic Upload a File/Resource
LimeSurvey Community Edition
Version 5.5.2+230109
Version 5.5.2+230109
Please Log in to join the conversation.
- tamase
- Topic Author
- Offline
- New Member
Less
More
- Posts: 15
- Thank you received: 0
1 year 5 days ago #241655
by tamase
Replied by tamase on topic Upload a File/Resource
it works now with
LimeSurvey Community Edition
Version 5.6.11+230320
thanks a lot!
Tom
LimeSurvey Community Edition
Version 5.6.11+230320
thanks a lot!
Tom
Please Log in to join the conversation.