> Make sure that alias matches the uploadDir from your config.js

Thank you, but I am afraid that is not the cause :( , I already have it:
```
location /files {
    internal;
    alias /home/sakaiuser/oae/upload;
}
```

Any other idea?

Best regards,
David Torres


Computer Scientist
Renuda UK


tel: +44 (0)20 3371 1709
web: www.renuda.com


Renuda UK is registered in England and Wales.  Company number 6218863.
VAT registration number 918 6490 91. Registered office: 35 Charleville Road, 
London W14 9JJ, UK.
Renuda registered trade mark.

________________________________________
From: D. Stuart Freeman [[email protected]]
Sent: 05 August 2013 12:30
To: David Torres
Cc: [email protected]
Subject: Re: [oae-dev] Unable to upload a file

On Mon, Aug 05, 2013 at 11:21:21AM +0000, David Torres wrote:
>    Hello list,
>
>    I created a new account in a new tenant.
>    When I tried to upload a file to `My Library`, the file appears in the UI.
>    However, I cannot access the file or download it because actually is not
>    uploaded.
>
>    I configured the upload directory in the `config.js`:
>    `'uploadDir': '/home/sakaiuser/oae/upload',`

In your nginx.conf there's a section that should look like:

  location /files {
    internal;
    alias /home/sakaiuser/oae/upload;
  }

Make sure that alias matches the uploadDir from your config.js

>
>    but that directory is empty. The upload directory is at the same level
>    that Hilary directory (not underneath Hilary). Could be this a source of
>    problems?
>
>    This is the output I get when I upload a file:
>
>    ```
>    [2013-08-05T11:11:01.486Z]  INFO: oae-preview-processor/6409 on
>    UKDesktop3: Starting preview generation process.
>    (contentId=c:other:ly3Qb76o)
>        data: {
>          "contentId": "c:other:ly3Qb76o",
>          "revisionId": "rev:other:lylhQb76s"
>        }
>    [2013-08-05T11:11:01.500Z]  INFO: oae-authentication/6409 on UKDesktop3:
>    Login for u:admin:ly7T_Cwd to tenant admin from 127.0.0.1
>    (login=u:admin:ly7T_Cwd, tenantAdmin=false, globalAdmin=true,
>    tenantAlias=admin, strategy=local)
>        headers: {
>          "x-real-ip": "127.0.0.1",
>          "x-forwarded-for": "127.0.0.1",
>          "host": "admin.oae.com",
>          "x-nginx-proxy": "true",
>          "connection": "close",
>          "content-length": "45",
>          "referer": "http://admin.oae.com/";,
>          "content-type": "application/x-www-form-urlencoded; charset=utf-8"
>        }
>    [2013-08-05T11:11:01.505Z]  INFO: oae-search/6409 on UKDesktop3:
>    Successfully indexed 2 documents.
>    [2013-08-05T11:11:01.511Z]  INFO: oae-authentication/6409 on UKDesktop3:
>    Login for u:admin:ly7T_Cwd to tenant other from 127.0.0.1
>    (login=u:admin:ly7T_Cwd, tenantAdmin=false, globalAdmin=true,
>    tenantAlias=other, strategy=signed)
>        headers: {
>          "x-real-ip": "127.0.0.1",
>          "x-forwarded-for": "127.0.0.1",
>          "host": "other.oae.com",
>          "x-nginx-proxy": "true",
>          "connection": "close",
>          "content-length": "133",
>          "referer": "http://other.oae.com/";,
>          "content-type": "application/x-www-form-urlencoded; charset=utf-8"
>        }
>    [2013-08-05T11:11:01.531Z] ERROR: oae-preview-processor/6409 on
>    UKDesktop3: Error trying to download the file.
>    (contentId=c:other:ly3Qb76o)
>        err: {
>          "code": 404,
>          "msg": "Unable to download the file."
>        }
>    [2013-08-05T11:11:01.532Z] ERROR: oae-preview-processor/6409 on
>    UKDesktop3: Error when trying to process this file.
>        err: {
>          "code": 404,
>          "msg": "Unable to download the file."
>        }
>    ```
>
>    Any of this sounds familiar?
>    Thank you in advance.
>    Best regards,
>
>    David Torres
>
>    Computer Scientist
>    Renuda UK
>
>    tel: +44 (0)20 3371 1709
>    web: [1]www.renuda.com
>
>    Renuda UK is registered in England and Wales.  Company number 6218863.
>    VAT registration number 918 6490 91. Registered office: 35 Charleville
>    Road, London W14 9JJ, UK.
>    Renuda registered trade mark.
>
> References
>
>    Visible links
>    1. http://www.renuda.com/

> _______________________________________________
> oae-dev mailing list
> [email protected]
> http://collab.sakaiproject.org/mailman/listinfo/oae-dev


--
D. Stuart Freeman
Georgia Institute of Technology
_______________________________________________
oae-dev mailing list
[email protected]
http://collab.sakaiproject.org/mailman/listinfo/oae-dev

Reply via email to