Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

Upload a File/Resource

  • tamase
  • tamase's Avatar Topic Author
  • Offline
  • New Member
  • New Member
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

Please Log in to join the conversation.

  • tpartner
  • tpartner's Avatar
  • Away
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
1 year 5 days ago #241643 by tpartner
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
  • tamase's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
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
  • tamase's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
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

Please Log in to join the conversation.

  • tamase
  • tamase's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
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'
)
);

Please Log in to join the conversation.

  • tpartner
  • tpartner's Avatar
  • Away
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
1 year 5 days ago - 1 year 5 days ago #241653 by tpartner
Replied by tpartner on topic Upload a File/Resource

this is the end of the file, but there is no params etc.:

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.

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
  • tamase's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
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

Please Log in to join the conversation.

  • tamase
  • tamase's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
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

Please Log in to join the conversation.

Lime-years ahead

Online-surveys for every purse and purpose