Welcome, Guest
Username: Password: Remember me

TOPIC: tmp directory problems

tmp directory problems 2 years 8 months ago #70909

  • mattias
  • mattias's Avatar
  • OFFLINE
  • Senior Lime
  • Posts: 77
  • Karma: 1
upload.jpg

upload folder that is inside this directory is removed only

tmp = 775
upload = 775

someone has had this problem?

regards
The administrator has disabled public write access.

Re: tmp directory problems 2 years 8 months ago #70934

  • Steve
  • Steve's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 494
  • Thank you received: 46
  • Karma: 17
Hello,

can you please explain what's your problem or what's wrong. You mentioned the upload folder, so the upload folder in the /tmp/ directory was deleted and you don't know why or what to do. Is that correct?
Mit freundlichen Grüßen/Best regards,

Stefan Gohlke
LimeSurvey Team
The administrator has disabled public write access.

Re: tmp directory problems 2 years 8 months ago #70939

  • mattias
  • mattias's Avatar
  • OFFLINE
  • Senior Lime
  • Posts: 77
  • Karma: 1
hello, the problem is that the folder tmp / upload is deleted because this can happen.

regards
The administrator has disabled public write access.

Re: tmp directory problems 2 years 8 months ago #70951

  • mattias
  • mattias's Avatar
  • OFFLINE
  • Senior Lime
  • Posts: 77
  • Karma: 1
this function is apparently deleted my tmp folder / upload

limesurvey version Versión 1.91+ Build 11379

common_functions.php

/ **
* This function cleans files from the temporary directory 1 day Older Than Being
* @ All configurable Make the days
* /
cleanTempDirectory function ()
{
global $ tempdir;
$ dir = $ tempdir .'/';
$ dp = opendir ($ dir) or die ('Could not open temporary directory');
while ($ file = readdir ($ dp)) {
if (is_file ($ dir. $ file) & & (filemtime ($ dir. $ file)) <(strtotime ('-1 days')) & & $ file! =' index.html '& & $ file! =' readme. txt '& & $ file & & $ file !='..' !='.' & & $ file! ='. svn ') {
@ unlink ($ dir. $ file);
}
}
$ dir = $ tempdir. '/ upload /';
$ dp = opendir ($ dir) or die ('Could not open temporary directory');
while ($ file = readdir ($ dp)) {
if (is_file ($ dir. $ file) & & (filemtime ($ dir. $ file)) <(strtotime ('-1 days')) & & $ file! =' index.html '& & $ file! =' readme. txt '& & $ file & & $ file !='..' !='.' & & $ file! ='. svn ') {
@ unlink ($ dir. $ file);
}
}
closedir ($ dp);
}


because the procedure done?

regards
Last Edit: 2 years 8 months ago by mattias.
The administrator has disabled public write access.

Re: tmp directory problems 2 years 8 months ago #70967

  • Steve
  • Steve's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 494
  • Thank you received: 46
  • Karma: 17
Hello,

if it is or seems to be a bug the bug tracker, bugs.limesurvey.org/ would be the best place to mention this bug/problem. You can report this issue and let a LimeSurvey developer have a look at it and solve this problem so it doesn't occur in the next builds.
Mit freundlichen Grüßen/Best regards,

Stefan Gohlke
LimeSurvey Team
The administrator has disabled public write access.
Moderators: ITEd
Time to create page: 0.107 seconds
Donation Image