Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- foreach ( $files as $name => $path ) {
- if ( ! isset( $_FILES[ $name ] ) )
- continue;
- $extension = pathinfo( $path, PATHINFO_EXTENSION );
- $destination = sprintf(
- '%s/%d-%s.%s',
- $storage_dir,
- $entry_id,
- md5( $path ),
- $extension
- );
- $uploads_stored[] = $destination;
- //VAR_DUMPING HERE?
- var_dump($files); die;
- // Copy to a permanant storage location
- @copy(
- $path,
- $destination
- );
- }
- return $uploads_stored;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement