Title: Extend Upload
Author: Gustavo Bordoni
Published: <strong>31 mars 2012</strong>
Last modified: 15 mars 2013

---

Recherche d’extensions

Cette extension **n’a pas été testée avec plus de trois mises à jour majeures de
WordPress**. Elle peut ne plus être maintenue ou supportée et peut avoir des problèmes
de compatibilité lorsqu’elle est utilisée avec des versions de WordPress plus récentes.

![](https://s.w.org/plugins/geopattern-icon/extend-upload.svg)

# Extend Upload

 Par [Gustavo Bordoni](https://profiles.wordpress.org/webord/)

[Télécharger](https://downloads.wordpress.org/plugin/extend-upload.0.0.4.zip)

 * [Détails](https://fr-be.wordpress.org/plugins/extend-upload/#description)
 * [Avis](https://fr-be.wordpress.org/plugins/extend-upload/#reviews)
 * [Développement](https://fr-be.wordpress.org/plugins/extend-upload/#developers)

 [Support](https://wordpress.org/support/plugin/extend-upload/)

## Description

I had a problem that most of the time I had to upload a file, and I had to use a
HTML upload, and that’s kind of bad, so I created something to use the Thickbox 
and the WordPress Uploader.

To use you must enqueue in the page used both the style and the script of the plugin:

    ```
    <?php
        wp_enqueue_script( 'extend-upload' );
        wp_enqueue_style( 'extend-upload' );
    ```

Then you can use the plugin by calling the jQuery Extends:

    ```
    (function($) {
        $(document).ready(function () {
            $('.uc-call').callUpload();
        });
    })(jQuery.noConflict());
    ```

And the HTML/PHP output should be something like that:

    ```
    <?php
        $args = array( 
            'url' => admin_url( 'media-upload.php?post_id=0&button=' . rawurlencode('Use as Avatar') . '&TB_iframe=1&width=640&height=253' )
        );
    ?>
    <p class='uc-container'>
        <label><?php echo _e( "Avatar:" ); ?></label><a target='_blank' class='uc-call' data='<?php echo json_encode( $args ); ?>'><small><?php _e( "Upload the Photo" ); ?></small></a>"; ?>
        <input class="uc-answer" type="text" value="<?php echo ( is_numeric( absint( $avatar ) ) ? absint( $avatar ) : esc_url($avatar) ); ?>" />
    </p>
    ```

Having the `uc-call` for the link, `uc-answer` with the input field and `uc-container`
for the box with both the link and the input field.

All the stuff is customizable by passing the variables in to the array `$args`, 
some stuff must be passed in the url, but later on I will add a easier way to do
it.

### Backlog

#### 0.0.4

 * Older version of jQuery allowed and allowing non Image Media to be used

#### 0.0.3

 * Fixed some bugs and added internationalization

#### 0.0.2

 * Added the javascript to change the Insert to Post text on the thickbox

#### 0.0.1

 * Using the the thickbox with the uploader iFrame inside you can call this from
   any page that has the script enqueued

## Avis

Il n’y a aucun avis pour cette extension.

## Contributeurs & développeurs

« Extend Upload » est un logiciel libre. Les personnes suivantes ont contribué à
cette extension.

Contributeurs

 *   [ Gustavo Bordoni ](https://profiles.wordpress.org/webord/)

[Traduisez « Extend Upload » dans votre langue.](https://translate.wordpress.org/projects/wp-plugins/extend-upload)

### Le développement vous intéresse ?

[Parcourir le code](https://plugins.trac.wordpress.org/browser/extend-upload/), 
consulter le [SVN dépôt](https://plugins.svn.wordpress.org/extend-upload/), ou s’inscrire
au [journal de développement](https://plugins.trac.wordpress.org/log/extend-upload/)
par [RSS](https://plugins.trac.wordpress.org/log/extend-upload/?limit=100&mode=stop_on_copy&format=rss).

## Méta

 *  Version **0.0.4**
 *  Last updated **il y a 13 années**
 *  Active installations **Moins de 10**
 *  WordPress version ** 3.0 ou plus **
 *  Tested up to **3.5.2**
 *  Language
 * [English (US)](https://wordpress.org/plugins/extend-upload/)
 * Tags
 * [dev](https://fr-be.wordpress.org/plugins/tags/dev/)[developer](https://fr-be.wordpress.org/plugins/tags/developer/)
   [extend](https://fr-be.wordpress.org/plugins/tags/extend/)[upload](https://fr-be.wordpress.org/plugins/tags/upload/)
 *  [Vue avancée](https://fr-be.wordpress.org/plugins/extend-upload/advanced/)

## Notes

No reviews have been submitted yet.

[Your review](https://wordpress.org/support/plugin/extend-upload/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/extend-upload/reviews/)

## Contributeurs

 *   [ Gustavo Bordoni ](https://profiles.wordpress.org/webord/)

## Support

Quelque chose à dire ? Besoin d’aide ?

 [Voir le forum de support](https://wordpress.org/support/plugin/extend-upload/)

## Faire un don

Souhaitez-vous soutenir l’avancement de cette extension ?

 [ Faire un don à cette extension ](http://bordoni.me/)