Fix upload link retrieval

Fixes issue #23