Skip to content

Instantly share code, notes, and snippets.

@argnist
Created January 27, 2014 09:03
Show Gist options
  • Save argnist/8645311 to your computer and use it in GitHub Desktop.
Save argnist/8645311 to your computer and use it in GitHub Desktop.
Самый простой способ загрузки файлов
$source = modMediaSource::getDefaultSource($modx);
$source->initialize();
$success = $source->uploadObjectsToContainer($path,$_FILES);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment