Jump to content

Rob Westergaard

Newbies
  • Posts

    2
  • Joined

  • Last visited

Rob Westergaard's Achievements

Newbie

Newbie (1/14)

  • First Post
  • Conversation Starter
  • Week One Done
  • One Month Later
  • One Year In

Recent Badges

0

Reputation

  1. Hello. I'm trying to integrate SuperContainer into a PHP-based site, but I'm having trouble creating the new SuperContainer object. SuperContainer version is 2.792. I created a test page with the following: <?php require_once 'supercontainer.php'; $SC_BASE_URL = 'http://localhost:8020/SuperContainer/Files'; $SC_USERNAME = 'username'; $SC_PASSWORD = 'password'; $sc = new SuperContainer($SC_BASE_URL, $SC_USERNAME, $SC_PASSWORD); if ($sc->getError()) die('Could not connect to SuperContainer server: ' . $sc->getError()); ?> I verified that the configured username and password match the above, but I always get the result "The requested URL returned error: 401". It doesn't seem to matter what value I use for the password. If I configure SC with a username but no password, I can use the above (with an empty string as the value for $SC_PASSWORD) successfully. What am I doing wrong?
  2. Is there any way to enforce a naming convention for files uploaded to SuperContainer? I have another process reading the stored files (not through SC) and I'd like to make sure the uploaded files don't have certain characters in their names: !@#$%& and so on.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.