Check out the LimeSurvey source code on GitHub!

tmp directory problems

More
5 years 2 months ago #70909 by mattias01

upload folder that is inside this directory is removed only

tmp = 775
upload = 775

someone has had this problem?

regards
Attachments:

Please Log in to join the conversation.

More
5 years 2 months ago #70934 by Steve01
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

Please Log in to join the conversation.

More
5 years 2 months ago #70939 by mattias01
hello, the problem is that the folder tmp / upload is deleted because this can happen.

regards

Please Log in to join the conversation.

More
5 years 2 months ago - 5 years 2 months ago #70951 by mattias01
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: 5 years 2 months ago by mattias01.

Please Log in to join the conversation.

More
5 years 2 months ago #70967 by Steve01
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

Please Log in to join the conversation.

Imprint                   Privacy policy         General Terms & Conditions         Revocation information and revocation form