BUGFIX: if uploads is in a symlinked directory stuff breaks