Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Uploadify integration

Featured Replies

  • Newbies

Hello ...

Trying to integrate SuperContainer with Uploadify. My method keeps dieing on the upload function. I have integrated the upload steps into the uploadify.php page ...Getting a 500 error in the popup generated by Uploadify. The file uploads via Uploadify, but the supercontainer upload fails. Here is the code ...

$targetFolder = '/client/files'; // Relative to the root

if (!empty($_FILES)) {

$tempFile = $_FILES['Filedata']['tmp_name'];

$targetPath = $_SERVER['DOCUMENT_ROOT'] . $targetFolder;

$targetFile = rtrim($targetPath,'/') . '/' . $_FILES['Filedata']['name'];

// Validate the file type

$fileTypes = array('jpg','jpeg','gif','png'); // File extensions

$fileParts = pathinfo($_FILES['Filedata']['name']);

if (in_array($fileParts['extension'],$fileTypes)) {

move_uploaded_file($tempFile,$targetFile);

// SUPERCONTAINER

include('sc/supercontainer.php');

$SC_BASE_URL = 'http://www.server.com/SuperContainer/Files';

$sc = new SuperContainer($SC_BASE_URL);

if ($sc->getError()) die('Could not connect to SuperContainer server: ' . $sc->getError());

$folderPath = "uploads/done";

$uploadedFile = "C:\\inetpub\\wwwroot\\client\\files\\" . $_FILES['Filedata']['name'];

$sc->upload($folderPath, $uploadedFile) or die("Could not upload $uploadedFile to $folderPath: " . $sc->getError());

//END SUPERCONTAINER

echo $uploadedFile;

} else {

echo 'Invalid file type.';

}

}

If anyone has attempted this and has a workable methodology, I'd greatly appreciate some insight! Thanks.

Create an account or sign in to comment

Important Information

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

Account

Navigation

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.