Welcome, Guest
Username: Password: Remember me

TOPIC: File upload doesn't upload anything

File upload doesn't upload anything 2 years 8 months ago #73310

  • billE
  • billE's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 4
  • Karma: 0
I just upgraded to 1.91 and am testing new file upload question type. When I test the survey, the uploader lets me select the file, but nothing ever gets uploaded. If i use the "data entry" function, the file uploads fine. What's up?

Thanks,

billE
The administrator has disabled public write access.

Re: File upload doesn't upload anything 2 years 8 months ago #73318

  • Mazi
  • Mazi's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 5333
  • Thank you received: 296
  • Karma: 249
1. Which Limesurvey version do you use?

2. Please switch on debug mode by adding the following line to your config.php file:
$debug = '1';

Are there any additional errors reported on top of the page?

Best regards/Beste Grüße,
Dr. Marcel Minke
(Limesurvey Head of Support)
Need Help? We offer professional Limesurvey support
Contact: marcel.minke(at)limesurvey.org'"
The administrator has disabled public write access.

Re: File upload doesn't upload anything 2 years 8 months ago #73321

  • billE
  • billE's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 4
  • Karma: 0
I'm using v 1.91...With debug on, i get a warning at the top of the file upload question page: "Invalid argument supplied for foreach() in C:\xampp\htdocs\limesurvey\common_functions.php." Any ideas?
The administrator has disabled public write access.

Re: File upload doesn't upload anything 2 years 8 months ago #73336

  • DenisChenu
  • DenisChenu's Avatar
  • OFFLINE
  • Moderator Lime
  • Posts: 6451
  • Thank you received: 844
  • Karma: 249
Hello,

What exact version( with allthe number) please :).

Denis
The administrator has disabled public write access.

Re: File upload doesn't upload anything 2 years 8 months ago #73366

  • Mazi
  • Mazi's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 5333
  • Thank you received: 296
  • Karma: 249
Does the error message also include a line number?

Best regards/Beste Grüße,
Dr. Marcel Minke
(Limesurvey Head of Support)
Need Help? We offer professional Limesurvey support
Contact: marcel.minke(at)limesurvey.org'"
The administrator has disabled public write access.

Re: File upload doesn't upload anything 2 years 8 months ago #73398

  • billE
  • billE's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 4
  • Karma: 0
The exact version: Version 1.91+ Build 12170

The exact message: Warning: Invalid argument supplied for foreach() in C:\xampp\htdocs\limesurvey\common_functions.php on line 1939

Thanks,

billE
The administrator has disabled public write access.

Re: File upload doesn't upload anything 2 years 8 months ago #73405

  • billE
  • billE's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 4
  • Karma: 0
I found the problem. The php error log showed:
"PHP Notice: Undefined variable: iFileUploadTotalSpaceMB in C:\xampp\htdocs\limesurvey\upload.php on line 135"

I edited upload.php to set the variable as follows, and it works now.

$iFileUploadTotalSpaceMB=1000;

I appreciate your time.

- billE
The administrator has disabled public write access.

Re: File upload doesn't upload anything 2 years 8 months ago #73460

  • Mazi
  • Mazi's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 5333
  • Thank you received: 296
  • Karma: 249
Please open a ticket at our bugtracker for this so our developers can have a look at it (they don't read the forum much) and can apply a patch to the main branch!

Best regards/Beste Grüße,
Dr. Marcel Minke
(Limesurvey Head of Support)
Need Help? We offer professional Limesurvey support
Contact: marcel.minke(at)limesurvey.org'"
The administrator has disabled public write access.

Re: File upload doesn't upload anything 2 years 7 months ago #75647

Hi,

When i use "File Upload", i have this error:
"Warning: rename(tmp/upload/xekqduj5wmip3qz,upload/surveys/53522/files/xekqduj5wmip3qz) [function.rename]: No such file or directory in /w3/cisa/survey/save.php on line 509"

Do you what is the solutions?

Thanks
The administrator has disabled public write access.

Re: File upload doesn't upload anything 2 years 7 months ago #75654

  • Mazi
  • Mazi's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 5333
  • Thank you received: 296
  • Karma: 249
Do the folders /limesurvey/tmp and /limesurvey/upload/surveys/53522/files/ exist?
After having uploaded a file, check if a file at tmp/upload<somecrypticvalue> does exist.

Best regards/Beste Grüße,
Dr. Marcel Minke
(Limesurvey Head of Support)
Need Help? We offer professional Limesurvey support
Contact: marcel.minke(at)limesurvey.org'"
The administrator has disabled public write access.
Moderators: ITEd
Time to create page: 0.194 seconds
Donation Image