Title: Install remote plugin, upgrader adding .tmp to folder
Last modified: August 20, 2016

---

# Install remote plugin, upgrader adding .tmp to folder

 *  [msolution](https://wordpress.org/support/users/msolution/)
 * (@msolution)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/install-remote-plugin-upgrader-adding-tmp-to-folder/)
 * Hi,
    im trying to upgrade my own plugin, and install another plugin,
 * it installs ok, but it adds .tmp in the folder name of the plugin **some of the
   times**.
 * what is supposed to be
 *     ```
       /wp-content/plugins/some_plugin/someplugin.php
       ```
   
 * becomes
 *     ```
       /wp-content/plugins/some_plugin.tmp/someplugin.php
       ```
   
 * my code is simple,
 *     ```
       $upgrader = new WP_Upgrader(new my_plugin_skin());
       $plugin_url = @$upgrader->run(array(
       			'package' 	=> $download_link,
       			'destination' 	=> $destination,
       			'clear_destination'=> $clear_destination,
       			'clear_working' => true,
       			'is_multi' => true,
       			'hook_extra' 	=> array()
       		));
       ```
   

Viewing 7 replies - 1 through 7 (of 7 total)

 *  Thread Starter [msolution](https://wordpress.org/support/users/msolution/)
 * (@msolution)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/install-remote-plugin-upgrader-adding-tmp-to-folder/#post-3397377)
 * anyone?
 *  Thread Starter [msolution](https://wordpress.org/support/users/msolution/)
 * (@msolution)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/install-remote-plugin-upgrader-adding-tmp-to-folder/#post-3397500)
 * anyone please 🙂
 * ?
 *  [reghyz](https://wordpress.org/support/users/reghyz/)
 * (@reghyz)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/install-remote-plugin-upgrader-adding-tmp-to-folder/#post-3397531)
 * hi,
 * Have you found an answer ? i have a similar problem, are you instaling this plugin
   from wordpress.org ? or from a another local or remote path (it append for me
   only in this cases) ?
 * a tip i’ve found but alas didn’t solved my problem was linked to the wp wpcontent/
   upgrade/ folder authorizations, try to pass it to 777 instead of 755, maybe this
   could help with you issue …
 *  Thread Starter [msolution](https://wordpress.org/support/users/msolution/)
 * (@msolution)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/install-remote-plugin-upgrader-adding-tmp-to-folder/#post-3397534)
 * i have php as cgi, so default permissions are 755,
 * if some one could shed some light here
 *  [Stephen Harris](https://wordpress.org/support/users/stephenharris/)
 * (@stephenharris)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/install-remote-plugin-upgrader-adding-tmp-to-folder/#post-3397537)
 * I was experiencing the same issue. In my case, I was being a little bit stupid.
   I was serving the zip from an Amazon S3 account, but the zip simply contained
   the plug-in files. Instead, should be placed inside a folder, which is then zipped.
 * Presumably when WordPress unzips the plug-in files, it creates the `.tmp` folder
   for them – at least replacing the zip with one with a proper structure seems 
   to fix it for me.
 *  Thread Starter [msolution](https://wordpress.org/support/users/msolution/)
 * (@msolution)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/install-remote-plugin-upgrader-adding-tmp-to-folder/#post-3397538)
 * i did the same, plugin files inside a folder, and then zipped,
 * if i use the wordpress upload plugin panel, alls well,
    but try it remotely,…
   things dont work well.
 *  [nvartolomei](https://wordpress.org/support/users/nvartolomei/)
 * (@nvartolomei)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/install-remote-plugin-upgrader-adding-tmp-to-folder/#post-3397612)
 * Hello,
 * anyone solved this? Also installing from remote location != wordpress.org.

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘Install remote plugin, upgrader adding .tmp to folder’ is closed to new
replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 7 replies
 * 4 participants
 * Last reply from: [nvartolomei](https://wordpress.org/support/users/nvartolomei/)
 * Last activity: [12 years, 6 months ago](https://wordpress.org/support/topic/install-remote-plugin-upgrader-adding-tmp-to-folder/#post-3397612)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
