Page 1 of 1

[2.1] Can't Upload Files - RESOLVED

PostPosted: 04.05.2015, 23:36
by abarker
The file upload feature doesn't seem to be working for our install. When we try, the progress bar runs rapidly through, or just instantly moves to the end, and the "File was added" message is displayed. We aren't working with very large files, the biggest is about 20KB.

I've made sure that the ./files directory is owned by root and has chmod 777.

Re: [2.1] Can't Upload Files

PostPosted: 05.05.2015, 15:08
by some person
If you can get to the server error logs, you will need to check there for any clues on what could be the problem.

Re: [2.1] Can't Upload Files

PostPosted: 05.05.2015, 20:40
by abarker
Here's what I found in the logs:

Code: Select all
[Tue May 05 18:23:29.631912 2015] [:error] [pid 10412] [client 12.164.155.8:33206] PHP Warning:  move_uploaded_file(/var/www/html/files/standard/10/web_services_46174.xlsx): failed to open stream: No such file or directory in /var/www/html/include/class.datei.php on line 308, referer: https://collabtive.mydomain.com/managefile.php?action=showproject&id=10
[Tue May 05 18:23:29.631941 2015] [:error] [pid 10412] [client 12.164.155.8:33206] PHP Warning:  move_uploaded_file(): Unable to move '/tmp/phpZbQ7Yc' to '/var/www/html/files/standard/10/web_services_46174.xlsx' in /var/www/html/include/class.datei.php on line 308, referer: https://collabtive.mydomain.com/managefile.php?action=showproject&id=10
[Tue May 05 18:27:56.534074 2015] [:error] [pid 10412] [client 12.164.155.8:54384] PHP Warning:  move_uploaded_file(/var/www/html/files/standard/10/web_services_25872.xlsx): failed to open stream: No such file or directory in /var/www/html/include/class.datei.php on line 308, referer: https://collabtive.mydomain.com/managefile.php?action=showproject&id=10
[Tue May 05 18:27:56.534101 2015] [:error] [pid 10412] [client 12.164.155.8:54384] PHP Warning:  move_uploaded_file(): Unable to move '/tmp/php7gOoZc' to '/var/www/html/files/standard/10/web_services_25872.xlsx' in /var/www/html/include/class.datei.php on line 308, referer: https://collabtive.mydomain.com/managefile.php?action=showproject&id=10


Those appear to represent two consecutive upload attempts. I only changed information that could be used to identify the company I work for.

Re: [2.1] Can't Upload Files

PostPosted: 07.05.2015, 04:57
by some person
Check that /var/www/html/files/standard/10/ exists and that it has write permissions.

Re: [2.1] Can't Upload Files

PostPosted: 07.05.2015, 17:15
by abarker
some person wrote:Check that /var/www/html/files/standard/10/ exists and that it has write permissions.


That was it! Thanks!