Loading

[2.1] Can't Upload Files - RESOLVED

Get help with problems, or report & discuss bugs in Collabtive

[2.1] Can't Upload Files - RESOLVED

Postby abarker » 04.05.2015, 23:36

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.
Last edited by abarker on 07.05.2015, 17:15, edited 1 time in total.
Running Collabtive 2.1 on Amazon Linux AMI 2015.03, PHP 5.6.8, MySQL 5.5.42
abarker
 
Posts: 10
Joined: 30.04.2015, 17:04
Location: Arizona, United States

Re: [2.1] Can't Upload Files

Postby some person » 05.05.2015, 15:08

If you can get to the server error logs, you will need to check there for any clues on what could be the problem.
some person
 
Posts: 439
Joined: 16.04.2011, 12:46

Re: [2.1] Can't Upload Files

Postby abarker » 05.05.2015, 20:40

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.
Running Collabtive 2.1 on Amazon Linux AMI 2015.03, PHP 5.6.8, MySQL 5.5.42
abarker
 
Posts: 10
Joined: 30.04.2015, 17:04
Location: Arizona, United States

Re: [2.1] Can't Upload Files

Postby some person » 07.05.2015, 04:57

Check that /var/www/html/files/standard/10/ exists and that it has write permissions.
some person
 
Posts: 439
Joined: 16.04.2011, 12:46

Re: [2.1] Can't Upload Files

Postby abarker » 07.05.2015, 17:15

some person wrote:Check that /var/www/html/files/standard/10/ exists and that it has write permissions.


That was it! Thanks!
Running Collabtive 2.1 on Amazon Linux AMI 2015.03, PHP 5.6.8, MySQL 5.5.42
abarker
 
Posts: 10
Joined: 30.04.2015, 17:04
Location: Arizona, United States


Return to Problems and Bugs

Who is online

Users browsing this forum: No registered users

cron