• 2 years

    2 years

    YetiShare / Core


Uploading to an external file server fails by producing an empty response


After setting up a remote file server for storage, uploading files isn't working. A blank response is received either after getting to 100% or before even starting.


This is normally as a result of cross site restrictions imposed by browsers. YetiShare overcomes this by outputting access control headers from the file server however these can be blocked or not received correctly by the originating site. To investigate try:

1) In Chrome, right click and select 'inspect element'. Click on the new 'Console' tab.
2) Attempt an upload.
3) Any errors should be shown in the console. Example of cross site error below:

The 'Access-Control-Allow-Origin' header contains multiple values ', *', but only one is allowed. Origin '' is therefore not allowed access.

The above error can be fixed by removing any headers set in your Apache config then restarting Apache. You may have something set like this:

<IfModule mod_headers.c>
Header set Access-Control-Allow-Origin "*"

Also check for any limits imposed on your web server to headers or blocks to the OPTIONS method.

External Resources: