jsorge

getContainerDataURL Causes HTTP 401 Error

Discussion created by jsorge on Oct 29, 2013
Latest reply on Feb 7, 2017 by mdurie

Hey all,

I'm using an externally stored container in my data file, and my PHP code is calling the getContainerDataURL method to return a URL to the container file. However, when I click on the link it pops up a login box, and if I click cancel then it gives me an HTTP 401 error and that the operation needs HTTP authentication to proceed. I know that everything should be hooked up properly because I'm getting data from other places in the system without issue. Here's a snippet of my code so you can see what I'm doing:

<a href="<?php echo $fm -> getContainerDataURL ( $invoices_record -> getField('File') ); ?>"><?php echo $invoices_record->getField('Description'); ?>

 

Is there something here that looks off? Or is this something that's a known issue with some sort of workaround? The problem this is presenting is we use this technique to allow customers to download their invoices from our website and it's broken. Thanks for any help.

jared

Outcomes